create_trigger
Creates a trigger that launches a specified bot flow when conditions such as keywords or events occur. Use it to automate WhatsApp bot responses.
Instructions
Create a new trigger for the bot
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"bot_id": "<bot_id>",
"name": "<name>",
"type": "<type>",
"flow_id": "<flow_id>"
},
"name": "create_trigger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Trigger name | |
| type | Yes | Trigger type (keyword, event, etc.) | |
| bot_id | Yes | The ID of the bot | |
| flow_id | Yes | ID of the flow to launch | |
| keywords | No | Keywords that trigger the flow |