changed to slack markdown.
This commit is contained in:
+17
-13
@@ -97,42 +97,46 @@ with a body like this:
|
||||
**Action**: Sent information to traffic-mcp with call slack-feed-traffic-delay-list. Use the format below.
|
||||
## Slack Message Format for Snoozed Orders
|
||||
|
||||
When posting snoozed order results to Slack, always use this exact format:
|
||||
When posting snoozed order results to Slack, always use this exact format with Slack mrkdwn syntax.
|
||||
|
||||
### 1. Header
|
||||
A single line with the total count:
|
||||
A bold line with the total count:
|
||||
```
|
||||
Here are all {count} snoozed orders:
|
||||
*Here are all {count} snoozed orders:*
|
||||
```
|
||||
|
||||
### 2. Table
|
||||
A plain-text table with exactly these four columns, in this order:
|
||||
Wrap the table in a Slack code block (triple backticks) so columns stay aligned:
|
||||
```
|
||||
```
|
||||
Order Detail ID | Supplier | Carrier | Product
|
||||
5768484 | De Groot Drukkerij B.V. | DPDINT-STANDARD | foldedleafletsv2
|
||||
5785996 | Probo | UPS-UPS_STANDARD | smallstickersownsize
|
||||
```
|
||||
Order Detail ID Supplier Carrier Product
|
||||
5768484 De Groot Drukkerij B.V. DPDINT-STANDARD foldedleafletsv2
|
||||
5785996 Probo UPS-UPS_STANDARD smallstickersownsize
|
||||
```
|
||||
|
||||
- Use `|` as column separator for readability
|
||||
- Include every order — never truncate or summarize with "and X more"
|
||||
- Keep columns aligned with consistent spacing
|
||||
- Column order is fixed: Order Detail ID → Supplier → Carrier → Product
|
||||
- The header count must match the actual number of rows
|
||||
|
||||
### 3. Summary footer
|
||||
After the table, always add a summary line:
|
||||
After the code block, add a summary line in italic:
|
||||
```
|
||||
All had state "{state}", target dispatch date of {date}, and valid tracking links.
|
||||
_All had state "Your order has been packaged", target dispatch date of March 13, and valid tracking links._
|
||||
```
|
||||
|
||||
If orders have different states or dispatch dates, group them:
|
||||
```
|
||||
- {count} orders with state "{state_a}" and target dispatch date of {date_a}
|
||||
- {count} orders with state "{state_b}" and target dispatch date of {date_b}
|
||||
All had valid tracking links.
|
||||
_• {count} orders with state "{state_a}", target dispatch date of {date_a}_
|
||||
_• {count} orders with state "{state_b}", target dispatch date of {date_b}_
|
||||
_All had valid tracking links._
|
||||
```
|
||||
|
||||
### Posting
|
||||
Send the formatted message via `mcp__traffic-mcp__Call_slack-feed-traffic-delay-list_`.
|
||||
|
||||
|
||||
**Confidence:** If ALL criteria match exactly → auto-execute (99%+ confidence). If any field is ambiguous or missing → MANUAL\_REVIEW.
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user