How to change the trigger of a Flow from one messaging channel to another
Understanding the Flow Structure
Step-by-Step Instructions
1. Export Your Original Flow (e.g., WhatsApp)
{
"name": "WA test flow",
"trigger": {
"type": "conversation",
"data": {
"channelIDs": [
"3734dfb6-09f0-4ae2-bd03-fe872ec16766"
],
"channelId": "3734dfb6-09f0-4ae2-bd03-fe872ec16766",
"connectorTemplateSlug": "whatsapp:1",
"event": "created",
"participantTypes": [
"contact"
]
},
"metadata": {
"sourceId": "3734dfb6-09f0-4ae2-bd03-fe872ec16766",
"hookId": "107b6827-5b9b-493c-8217-a9330ba88f13",
"sources": [
{
"sourceId": "3734dfb6-09f0-4ae2-bd03-fe872ec16766",
"hookId": "107b6827-5b9b-493c-8217-a9330ba88f13"
}
],
"testingSourceId": "00000000-0000-0000-0000-000000000000",
"additionResources": null
}
},
"definition": {
"startAt": "createConversationMessage_X0EZ",
"steps": {
"createConversationMessage_X0EZ": {
"type": "mrn:v1:conversations:endpoints:createConversationMessage/textMessage:1.0.0",
"parameters": {
"payload": {
"conversation": {
"conversationId": "{{trigger.payload.conversation.conversationId}}"
},
"participantId": "{{run.flowId}}",
"participantType": "flow"
},
"request": {
"workspaceId": "{{run.workspaceId}}"
}
},
"next": "terminate_uwtz"
},
"terminate_uwtz": {
"type": "terminate",
"parameters": {
"code": "",
"fail": false,
"reason": ""
}
}
}
}
}2. Create a Dummy Flow for the Target Channel (e.g., Facebook Messenger)
3. Replace the Trigger in Your Original Flow
Final Output: WhatsApp Flow with Facebook Trigger
4. Import the JSON
Notes
Result
Last updated
Was this helpful?

