Response Workflows let you automate, personalize, and scale your customer communications. A well-designed workflow prompt gives the AI everything it needs to produce consistent, compliant, on-brand replies — without manual intervention.
This article walks you through the major building blocks of a prompt, shows you how to combine them, and provides “recipes” you can copy and adapt.
Why Structured Prompts Matter
Most workflows include only two sections:
- INSTRUCTIONS – What the AI should do.
- REPLY TEMPLATE – The skeleton of the message you want the AI to produce.
That works for simple cases. But as soon as you want complex routing, brand-safe language, or data-driven personalization, adding more sections gives you better control and higher quality.
Prompt Sections You Can Use
Below are the main sections you can mix and match in any workflow prompt.
| Section | Purpose | Example |
|---|---|---|
| ROLE SUMMARY | Give the AI a short, factual overview of its purpose, role or persona | You are a customer support agent for Stylo AI. Your task is to help customers create world class response workflows. |
| TONE & STYLE | Lock in brand voice, tone, and formatting rules that may be specific to this workflow. | Warm but concise. Under 50 words per paragraph. No emojis. Always greet customer by first name. |
| POLICY RULES | State hard constraints or compliance requirements. | Do not promise refunds over $20 without escalation. Never reference internal tags or systems. |
| DATA FIELDS | List key ticket fields or external data the AI must use. | Priority: {{ticket.priority}} Region: {{ticket.organization.custom_fields.region}} Product: {{ticket.ticket_field_product_category}} |
| DECISION LOGIC | Spell out branching logic before writing the reply. | If VIP & High priority → expedite response. Else → escalate to Tier 2. |
| EXAMPLES (Few-Shot) | Show the AI what a good reply looks like. | Example 1: “Hi John, I’m sorry your order was delayed…” |
| OUTPUT FORMAT | Define the structure for the reply if your downstream system expects it. | Reply Body: Next Steps: Tags to Add: |
| FALLBACK | Tell the AI what to do if data is missing. | If order number missing, politely request the customer’s order number. |
You can include any or all of these before your INSTRUCTIONS and REPLY TEMPLATE blocks.
How to Structure a Workflow Prompt
A robust prompt might look like this:
## ROLE SUMMARY
Your are an assistant helping to track down orders for BigCo.
## TONE & STYLE
Warm and apologetic, no emojis, under 50 words per paragraph.
## POLICY RULES
- No compensation beyond $20 without escalation.
- Never reveal internal systems.
## DATA FIELDS
Priority: {{ticket.priority}}
Region: {{ticket.organization.custom_fields.region}}
Product: {{ticket.ticket_field_product_category}}
## DECISION LOGIC
If VIP & High priority → expedite response.
Else → normal response.
## EXAMPLES
Example: “Hi John, I’m sorry your order was delayed…”
## INSTRUCTIONS
Write a clear, helpful update about the order status, following the tone and policy rules above.
## REPLY TEMPLATE
Hi {{ticket.requester.first_name}},
[[ORDER_STATUS_RESPONSE]]
Best regards,
Customer Support Team
This gives the model a complete picture: context, tone, constraints, logic, examples, and finally the template to fill.
Recipes: Putting It Into Practice
Below are common scenarios with examples of how to layer sections.
Recipe 1: Static Greeting + Dynamic Content
Goal: Standard customer service response with personalized greeting.
## TONE & STYLE
Professional but friendly.
## INSTRUCTIONS
Generate a helpful response acknowledging their inquiry and providing next steps.
## REPLY TEMPLATE
Dear {{ticket.requester.first_name}},
Thank you for contacting our support team about "{{ticket.subject}}".
[[HELPFUL_RESPONSE]]
Best regards,
Customer Support Team
Recipe 2: Conditional Static Text (Priority-Based Signature)
Goal: Different signatures based on ticket priority.
## POLICY RULES
No escalation contact given unless priority = high.
## INSTRUCTIONS
Generate appropriate response based on ticket priority: {{ticket.priority}}.
## REPLY TEMPLATE
Hi {{ticket.requester.first_name}},
[[PRIORITY_RESPONSE]]
[IF priority_high]
For urgent matters, you can also reach our escalation team at urgent@company.com.
Best regards,
Senior Support Specialist
[ELSE]
Thank you for your patience.
Best regards,
Support Team
[ENDIF]
Recipe 3: Compensation Decision Engine
Goal: Automated compensation decisions based on issue severity.
Add DATA FIELDS to tell the AI what’s available:
## DATA FIELDS
Priority: {{ticket.priority}}
Order value: {{ticket.ticket_field_123456}}
## POLICY RULES
Never offer more than listed options.
## INSTRUCTIONS
Empathize with the customer and offer appropriate compensation based on their experience. Use the decision rules below.
Decision rules:
- Minor inconvenience: Small voucher
- Moderate: Medium voucher
- Significant: Large voucher
- Major: Full refund
## REPLY TEMPLATE
Dear {{ticket.requester.first_name}},
[[EMPATHY_AND_COMPENSATION]]
We truly value your business and appreciate you taking the time to reach out.
Kind regards,
Customer Care Team
Recipe 4: Product Return Assistant
Add FALLBACK so the AI knows what to do if order number is missing.
## FALLBACK
If order number missing, politely request it before giving instructions.
## INSTRUCTIONS
Customer wants to return item. Provide return instructions based on:
- Product type: {{ticket.ticket_field_product_category}}
- Purchase date: {{ticket.ticket_field_purchase_date}}
- Reason: {{ticket.description}}
## REPLY TEMPLATE
Hi {{ticket.requester.first_name}},
Thank you for contacting us about returning your recent purchase (Order #{{ticket.ticket_field_order_number}}).
[[RETURN_INSTRUCTIONS]]
If you have any questions about the return process, please don't hesitate to ask.
Best regards,
Returns Team
Recipe 5: Order Status with Shopify Integration
Add OUTPUT FORMAT to enforce tracking info layout.
## OUTPUT FORMAT
Reply Body:
Tracking Information:
Carrier:
## INSTRUCTIONS
Provide order status update based on current information…
## REPLY TEMPLATE
Hello {{ticket.requester.first_name}},
Thanks for checking on your order [[shopify.order.number]]!
[[ORDER_STATUS_UPDATE]]
[IF tracking_available]
📦 Track your package: [[shopify.order.tracking_url]]
Carrier: [[shopify.order.carrier]]
Tracking #: [[shopify.order.tracking_number]]
[ENDIF]
Happy to help with anything else!
The Fulfillment Team
Recipe 6: Priority-Based Response Times
Use VALIDATION CHECKLIST to ensure the output includes a time commitment.
## VALIDATION CHECKLIST
- [ ] Response time included
- [ ] Greeting by name
- [ ] No internal jargon
## INSTRUCTIONS
Set response time expectations based on:
- Priority: {{ticket.priority}}
- Customer tier: {{ticket.ticket_field_customer_tier}}
- Issue type: {{ticket.type}}
## REPLY TEMPLATE
Hello {{ticket.requester.first_name}},
We've received your {{ticket.type}} request about "{{ticket.subject}}".
[[RESPONSE_TIME_COMMITMENT]]
[IF vip_customer]
As a VIP customer, you also have access to our priority support line: 1-800-VIP-HELP
[ENDIF]
Thank you for your business,
Support Team
Tips for Success
- Start simple. Add only the sections you need.
- Use real examples. Few-shot samples dramatically improve output quality.
- Test with real tickets. Ensure placeholders resolve and logic works.
- Review outputs regularly. Adjust tone, policies, and conditions as your business evolves.
- Maintain brand voice. Tone & Style section keeps responses consistent across teams and workflows.
Next Steps
- Choose a pattern from the recipes above.
- Add extra sections (Context, Tone, Policy, etc.) as needed.
- Test and validate with real tickets.
- Monitor unresolved placeholders and iterate.
By layering these sections into your prompts, you’ll create Response Workflows that are both highly automated and genuinely helpful - delivering fast, accurate, and on-brand replies at scale.
Comments
0 comments
Please sign in to leave a comment.