Creating Flows
Learn how to create and manage automated WhatsApp flows in Wasapia
Learn how to create and manage automated WhatsApp flows in Wasapia
Learn how to create automated flows to handle WhatsApp conversations efficiently.
A flow is an automated sequence of messages and actions that are triggered when specific conditions are met. Flows help you automate conversations, collect information, and provide responses without manual intervention.
Access Flow Builder
Define Trigger
Add Steps
Here's a simple flow that sends a welcome message and collects user information:
{
"name": "Welcome Flow",
"trigger": {
"type": "keyword",
"value": "start"
},
"steps": [
{
"type": "send_message",
"message": "Welcome to our service! What's your name?"
},
{
"type": "wait_response",
"timeout": 300,
"save_as": "user_name"
},
{
"type": "send_message",
"message": "Nice to meet you, {{user_name}}! How can we help you today?"
}
]
}
Keep it Simple
Use Clear Messages
Handle Timeouts
Test Your Flows
Use variables to make your flows dynamic:
{{user_name}}
- User's name{{phone}}
- User's phone number{{last_message}}
- Last received message{{timestamp}}
- Current timeAlways include error handling in your flows:
Timeout Handling
{
"type": "wait_response",
"timeout": 300,
"on_timeout": {
"type": "send_message",
"message": "We haven't heard from you. Please try again later."
}
}
Invalid Input
{
"type": "condition",
"check": "{{last_message}}",
"on_invalid": {
"type": "send_message",
"message": "Sorry, I didn't understand that. Please try again."
}
}