How to Change the Trigger of a Flow from One Messaging Channel to Another
If you’ve built a conversational Flow in Flows for a channel like WhatsApp, and now want to reuse it on Telegram or Facebook Messenger, you may have noticed that the UI requires you to recreate the entire flow from scratch just to switch the channel trigger.
This can be time-consuming, especially for long, complex flows. However, there is a workaround method: editing the Flow’s exported JSON to change the trigger only, while keeping the full conversation logic intact.
Understanding the Flow Structure
A Flow’s JSON is divided into two main parts:
Trigger — defines the channel and event that starts the Flow.
Definition — contains all the steps and logic of the conversation.
The "trigger" section continues until right before the "definition" key. Everything from "definition" onwards is the Flow logic and steps, which you want to preserve. Also, note that something that’s referenced from the trigger on the rest of the flow will have also have to be replaced like which may vary for each trigger type “{{trigger.payload.conversation.conversationId}}”
Step-by-Step Instructions
1. Export Your Original Flow (e.g., WhatsApp)
Here’s an actual example of a Flow built for WhatsApp:
2. Create a Dummy Flow for the Target Channel (e.g., Facebook Messenger)
Create a new Flow in the UI, but only set the trigger for the desired channel (Telegram, FB, etc.), and export it.
Here’s an example of a Facebook Messenger trigger:
3. Replace the Trigger in Your Original Flow
In your exported WhatsApp Flow:
Locate the entire "trigger" block (from "trigger": { to the closing }, just before "definition").
Replace it with the "trigger" block from the dummy Facebook/Telegram Flow.
Be sure to preserve the rest of the JSON—everything from "definition" onward stays the same. And, don't forget to look for trigger references and replace those as well.
Final Output: WhatsApp Flow with Facebook Trigger
4. Import the JSON
Now import the JSON that you got by following the previous step into Flows.
Notes
This method works for conversation-based channels like WhatsApp, Facebook Messenger, and Telegram.
It does not work for email triggers, which have a different structure.
Make sure your workspace is configured with the destination channel before importing the modified Flow.
Be careful to match channelId and connectorTemplateSlug correctly.
Result
You’ve now successfully changed the messaging channel trigger for your Flow without rebuilding it manually. This saves hours when managing multi-channel conversational experiences!
Last updated
Was this helpful?