API Basic Message

This node helps you send a normal text response in a WhatsApp conversation. Here you can create a dynamic and customized response on your server and serve it through an API. which should have a matching response as shown in the example below.

Sample Response:

{
  "data": {
    "body_text": "You are about to reserve a ticket for *X- Men*. With the following details:\n    Theater: Cinepolis\n    Date: 6th Jan 2023, Friday\n    Show: 03:00PM to 06:00PM \n    Seats: C11,C12\n    Amount: Rs. 800.00"
  }
}

Explanation: 
Here, “bodytext” contains the text matter that needs to be printed in the WhatsApp conversation. You can use \n to define a new line. Within this message, you can use WhatsApp styling attributes like * symbol for bold, for italics, etc.

General Usage Instructions 

The data that the user shares with a chatbot can be passed within the API request. In order to do so, you must save user inputin a lead data field
Learn more : https://www.youtube.com/watch?v=2Mo3x4k0U8g 

Once your customer data is available in lead data fields you can pass your API request with url parameters that include lead data fields, that would dynamically hit the API based on each users input. 

Sample API Request. 
 

https://yourapi.com/booknow?movie=[movie]&date=[date]&theater[theater]&showtime[time]

Some system variables: 
Phone number of customer [phone] 
Unique id for each user [leadId] 
UserID of assigned team member [assigned_to]