July 12, 2023
Interakt users can set up WhatsApp workflows on Interakt and create conversational flows, guiding customers through various processes. By utilising workflows, you can ask sequential questions, capture responses in variables, and export the data for efficient processing.
Click on “Automation” from the Settings tab on Interakt. Post which users can click on the “Workflow” tab.
Step 2:
This is the Workflow homepage, where users can read a brief on the module and watch a demo video explaining the same. Click on the +New Workflow button to create a new one or just select an old one to start editing it.
a). Using the templates
You can scroll through all the template options. If you want to see what the exact flow is, you can click on any 1 of the templates and scroll through the middle section to see all the text in there.
The above image shows the ‘Lead Gen’ workflow.
i). You can also check the left section and explore the flow for all other readily available templates. Check all the templates and if you feel any of the templates is something that you want to run your campaign. You can click on “make a copy to edit” on the right and then rename it to the name that you prefer.
Workflows on Interakt help you to personalize your responses when interacting with the user. After collecting the user’s details during the initial conversation, you can save their details across parameters such as “name”, “email address”, “phone number”, and “job title”. By doing this, you can engage with users in a personalized way. The data collected and saved by the user can be implemented in upcoming campaigns.
The user response can be saved either as a “User Trait” or “Workflow Variable”. Read on to find out the instances when each of these should be used.
Once you click on “Create from Scratch”, you’ll enter the composer area to create the workflow. Name the Workflow appropriately. We’ve named it “Lead Qualification”.
You can either select a response by clicking on the dropdown and choosing from the options available, or create a custom response message by selecting the “Custom response” option. Additionally, you can also Trigger Webhooks.
In the message composer, you can create your message and add any variables by clicking “Add variable,” as shown below.
Note: Similar to how we have in campaigns and FAQs, you can add a value and a fallback value below under the variables section. You can add more than 1 variable. Please make sure you select a variable for value as well as a fallback value.
You can select if you want to add a button or List to the response.
In fact, you can create a maximum of seven responses per workflow, and any number of workflows.
Once you’ve selected a response, it will appear as Response 1.
Now, you have to save the user response for future or each subsequent conversation. Click on “Save user response”. You’ll see two methods to save the user response: “User Trait” and “Workflow Variable”.
After saving the “Workflow Variable”, when you want to send a response regarding the shipping status of the order (as per our example), select “Create a custom response”. In the message box, type in the message that you want to send and click on “Add variable”. Then, select “Workflow Variable” and choose the saved variable, which in our case is the “order ID”.
Interakt now offers users the option to trigger webhooks as part of the workflows they have set up. You can now easily integrate API calls into the workflows to interact with external systems and get or update data. The steps and methods to set up a webhook are explained below.
Note: Webhooks are available only for Advanced and Enterprise users.
In this step, you can request an API using any of the request type options: Get, Post, Put, or Delete. Input the URL in the field below “request type” to call the specific API.
You can also add a variable as part of the URL you’re requesting by selecting “Add variable” and choosing a “user trait” or “workflow variable”.
After configuring the URL, the header has to be customized. Please note that we currently only support json by default. You can add extra header params if required.
Once you’ve customized the header, the body of your response should be configured.
If, for example, you’re handling a user query about the shipping status of an order and you’ve collected the order ID in the previous step, it has to be passed to the API via Body params.
Please note that the custom values in the “Request body” field must also be in json format only, and have a character limit of 200.
After you’ve sent an API request and received a response, it needs to be saved as a user trait or a variable.
For this step, you must test the webhook for a sample response. Once you click on “Test Webhook” CTA, you’ll be shown a list of variables configured in your Request, Header and Body. You must enter test values into the respective variable fields to test the webhook and then it calls the API for a response.
Once you’ve received the sample response from the API, you must collect the relevant data such as “order ID” or “shipping status” and save it as a user trait or workflow variable. For this, input the corresponding key in the objectkey.keyname format from the API response.
Ex: if you want to store the shipping status, you have to use Order.shippingStatus in the “Entire response Body” above
{
“Order”: {
“orderId”: “xxxxx”,
“shippingStatus”: “in Transit”,
},
“userId”: yyyy
}
If the API response showed an error in its output, you can craft a default error response, which will be displayed for all the APIs that are failing. Workflow bot breaks and the subsequent steps will not be executed.
Save
Ensure that you click “Save” after configuring the steps to call an API, as without saving the changes you make will be lost.
Note: Only URL is mandatory, other steps for setting up and triggering API are optional.
The “Workflow Variable” should be used when responding to a user query, and the variable (eg: order ID) needs to be temporarily saved.
Ans: If the workflow is triggered, the custom auto reply set for the same intent will not be sent.
Ans: Yes, you can. But if your customers send more than 1 response, then the workflow will break.
Ans: In this case, the workflow will break.