To build a basic text response for your WhatsApp chatbot, we use Default Text Response from the Dialogflow. We can create variants for a simple text message in the Default Text Response.
To add a new line in a text response, we separate texts for two consecutive lines using ‘Shift + Enter’ Keys. Text written after ‘Shift + Enter’ Keys will be displayed in the next line of the same message in the WhatsApp Chat.
To add a new message or bubble in text responses, we separate texts for two consecutive messages using two semicolons ‘;;’ . Text written after ‘;;’ will be displayed as a separate message in the WhatsApp Chat.
To create a text message bold, we put that text inside two asterisk characters, eg. *BoldText* . Text written between two asterisk characters (do not give spaces between * and text) will be bold in the WhatsApp response.
To create a text message italic, we put that text inside two underscore characters, eg. _ItalicText_ . Text written between two underscore characters (do not give spaces between _ and text) will be in Italic style in the WhatsApp response.
We can use emojis and emoticons by simply adding them to our text responses. To Access Emojis:Windows – Press ‘Windows Key’ + ‘Semicolon’MacOS – Press ‘Command’ + ‘Control’ + ‘Spacebar’
In order to send media like images, videos, Gifs or files like .docs, .pdf, we’ve to follow a certain format.
We use the Basic Card From Google Assistant Response to create a media/file response.
Maximum file size allowed for all media (photos, videos or voice messages) to be sent or forwarded through WhatsApp is 5 MB on all platforms.
We primarily use file URL, alt text and a file type ( IMAGE for an image, VIDEO for videos and FILE for documents).
Chat with Us