Creating a workflow with Incoming message (Virtual Number)
This functionality is ideal for creating automated WhatsApp conversations using predefined templates and notification event triggers. It’s also useful for capturing and updating customer SMS responses in your system.
You can also capture Keypress values during a Voice call and trigger a workflow.
Example: COD order confirmation
For example, you can configure the below flow using our Workflow:
The animation below follows two customers through this flow, plus what happens if your API call fails.

To achieve this, you need to do the following:
Step 1: Create a WhatsApp template to initiate a conversation

Step 2: Design a Workflow to decide what WhatsApp message to send based on user response

Here is the trigger setup at a glance.

Set up the Virtual Number trigger
Select the trigger
Create a workflow and select VIRTUAL NO. from the triggers. The Mobile No. panel opens. To pick a different trigger, click CHANGE TRIGGER.
Select your WhatsApp Business number
Under Mobile Number, select the number to which users send their response. You can add more than 1 WhatsApp Business number, so any replies received on any of these numbers will trigger this workflow.

Don’t see your number? Click GO TO INTEGRATIONS to set up a new incoming number for WhatsApp, or contact support@fyno.io.
Store the button payload data (optional)
You can store the data you are passing in the button payload if you want to use that data further in the workflow. In this example, we are passing order_id and the template name in the button payload.
Expand Store Button Payload Data (optional), enter a name in Stored variable, and pick where the value comes from in Variable value from payload. Click ADD ANOTHER to store more values.

Simplify the payload (optional)
Incoming message payloads have long keys. Click SIMPLIFY PAYLOAD to open the Payload Mapper, where you can give a key a short name to use across the workflow.
Enter a name under MAPPER VARIABLES, then pick a payload key or enter HBS under PAYLOAD/HBS. Click ADD for more, then CONFIRM.

Check what the user replied
Add a condition for the reply
Add a condition to check what the user has sent to your WhatsApp Business number. In this use case, the user could have sent either ‘Confirm’ or ‘Cancel’. The variable simplified.message.button.text will contain the Quick Reply text your customer has sent. In this case, we have assumed the user has sent ‘Confirm’.

Check the template name (optional)
If you want to make sure this response comes from the exact template message you sent to the user, add one more condition to check the template name as shown.
Add the condition as Custom Value $input.body.entry.0.changes.0.value.messages.0.button.payload.template equals order_confirmation. This accesses the template variable we added in the WhatsApp template (see step 3 in Step 1).

Update the order in your system
Call your API
Add the API action block to the workflow canvas to send the user response to your system and update the order status when the user clicks either ‘Confirm’ or ‘Cancel’.
You need to post a request to your webhook. Make sure you have allow-listed your URL. Read more about it here.

Notify the user and wait for their reply
Send the order status
If the HTTP status code is 200, send a notification to the user confirming the status of the order.
- Map the mobile no in the destination section. You can choose
simplified.sourcefrom the dropdown. - Map all the placeholders used in the template in the data section, in the format
{{$http_response.data.<variable>}}.

Notification event settings
Click the settings icon at the top right of the Notification Event panel to open these tabs:
- DELIVERY REPORT: receive delivery reports on your own system or tools like Mixpanel and Amplitude.
- OVERRIDE: use different values, like sender details, for this notification.
- IDEMPOTENCY: set an idempotent key so the same notification is not sent twice when the data has not changed.
To send simple and interactive WhatsApp messages, you can directly use the Send Message node with a WhatsApp template. No need to create a notification event in such cases.
Nodes you can use
These nodes are available after a Virtual Number trigger:

How to test an Incoming message workflow?
While configuring the trigger, expand Test Numbers (optional) and add up to 3 mobile numbers, with country codes. All messages sent from these numbers will trigger the latest Test version of the Workflow.

How to raise Approval requests
If your workspace has Approval turned on, clicking GO LIVE creates an approval request instead of publishing the workflow right away. You can read more about it on the Approval Request page.



