Creating Workflows
Build webhook, Zapier, and Make integrations
This guide walks you through creating different types of workflows to automate actions in your AI support system.
Creating a Workflow
- Go to AI Agents > Workflows
- Click Create Workflow (or New)
- Fill in basic information
- Configure the action type
- Set up triggers
- Save and test
Basic Information
Name
Give your workflow a descriptive name:
- "Cancel Order Request"
- "Collect Lead Info"
- "VIP Customer Alert"
Description
Describe when this workflow should trigger:
Triggers when a customer wants to cancel their order.
Sends order ID and customer email to our order management system.This description helps the AI understand when to use the workflow.
Slug
A unique identifier used in the system:
cancel-ordercollect-leadvip-alert
Automatically generated from name if not specified.
Webhook Workflows
Send data to any HTTP endpoint.
Configuration
| Field | Description |
|---|---|
| URL | The endpoint to call |
| Method | GET, POST, PUT, DELETE |
| Headers | Custom headers (auth, content-type) |
| Payload | Data to send |
Example: Order Cancellation
URL: https://api.yourstore.com/orders/cancel
Method: POST
Headers:
Authorization: Bearer your-api-key
Content-Type: application/json
Payload:
order_id: {{order_id}}
customer_email: {{customer_email}}
reason: {{cancellation_reason}}Available Variables
In your payload, use these variables:
| Variable | Description |
|---|---|
{{conversation_id}} | Current conversation ID |
{{customer_id}} | Customer identifier (if known) |
{{customer_email}} | Customer email (if collected) |
{{message}} | Latest customer message |
{{extracted.*}} | AI-extracted data |
Testing Webhooks
- Use a tool like webhook.site to test
- Configure your workflow to send there
- Trigger in preview mode
- Verify data received
Zapier Workflows
Connect to Zapier for no-code integrations.
Setup
- Select Zapier as action type
- Click Connect to Zapier
- Authorize the connection
- Select or create a Zap
Common Zaps
- Google Sheets: Log conversation data
- Slack: Alert team of escalations
- HubSpot: Create contacts from leads
- Trello: Create cards for follow-ups
Make (Integromat) Workflows
Connect to Make for advanced automations.
Setup
- Select Make as action type
- Click Connect to Make
- Authorize the connection
- Select your scenario
Advanced Features
Make supports:
- Multi-step scenarios
- Conditional branching
- Data transformation
- Error handling
Escalation Workflows
Hand conversations to human support.
Configuration
| Field | Description |
|---|---|
| Where to send escalations | |
| Include Transcript | Send conversation history |
| Subject Template | Email subject line |
| Collect Fields | What to ask customer |
Example Configuration
Email: support@company.com
Include Transcript: Yes
Subject: [Escalation] {{topic}}
Collect Fields:
- Email (required)
- Phone (optional)
- Preferred callback timeTag Workflows
Automatically apply tags to conversations.
Configuration
| Field | Description |
|---|---|
| Tag | The signal tag to apply |
| Condition | When to apply |
Example
Tag: "Billing Issue"
Condition: Intent matches billing-related queriesCustom Reply Workflows
Send specific responses when triggered.
Configuration
| Field | Description |
|---|---|
| Message | The response to send |
| Rich Content | Buttons, links, etc. |
Example
Message: "I've initiated your cancellation. You'll receive a confirmation
email within 24 hours. Is there anything else I can help with?"Persona Scoping
Limit workflows to specific personas:
- In workflow settings, find Persona Scope
- Choose:
- All - Works with all personas
- Selected - Choose specific personas
- Select personas if limited
Enabling/Disabling
Toggle workflows on/off:
- Go to AI Agents > Workflows
- Find your workflow
- Toggle the Enabled switch
Disabled workflows won't trigger but retain configuration.
Testing Workflows
Before going live:
- Go to Widget > Preview
- Start a conversation
- Trigger the workflow condition
- Check execution in workflow history
- Verify external system received data
Best Practices
Start with Description
Write a clear description before configuration. This helps the AI know when to trigger.
Use Test Endpoints First
Don't test against production systems. Use:
- webhook.site
- requestbin.com
- Staging/test endpoints
Handle Errors Gracefully
Configure fallback messages:
If workflow fails, respond: "I've noted your request and our team
will follow up within 24 hours."Monitor Initially
After launch, watch:
- Execution counts
- Error rates
- Response times