Dynamic Data
Used to dynamically showcase products, multiple choice from API
Last updated
Used to dynamically showcase products, multiple choice from API
Last updated
Note: You need to use an API action before this action. Click here if you want to know how to integrate a new API in REVE chat. If you want to learn more about the API action in chatbot click here.
Here users have to select the attribute storing the response form an API. Users can verify the attribute value by using the "View API Data". Next we have to select the attribute data format from either string or object. When string is selected, each element of a response will be considered as a text element & can not be selected individually. But if object is selected, each element of a response can be selected individually.
For example if text is selected, each element of the id:1 will be considered as texts & can not be selected individually to be shown to visitors. But if object is selected, we can select each element like title, description, thumbnail to show to visitors.
Next, users need to select how they want to showcase the data: either as buttons, quick replies, or a carousel in the Data Preview As option.
If Data Preview As is selected as carousel, users can select specific attribute title for description, title, image as well as buttons. For example, in the above API response we can input the title key as Headline, description key as Description. For Image, any attribute title key that stores an image url needs to be selected. Similarly for button title, value (numeric or url) can be set using attribute title. But if a button is configured to take to a different node it will be same for all the cards of a carousel.
As one chatbot flow can be used in multiple platforms (web & social media), users can add a maximum of 11 cards per carousel. Therefore if an API has more that 11 items to showcase, the 11th card needs to be manually configured to ask if the visitor needs to view other products or not. Here user needs to provide a default text, description and button title asking visitors/customers if they want to view more items.
If a customer clicks the button, the remaining items will be shown. If the remaining items are more than 11, then again the 11th card will be default card asking customers if they want to view more items.
If Data Preview As is selected as quick reply/ buttons, similar to carousel buttons, users can add attribute title as Button Title, Value & URL (for buttons only).
Similar to carousel, Quick reply can have 11 clickable buttons & Buttons can have only 3 clickable buttons to direct to a node or URL (Buttons). A see more button will appear when options provided by the API will be more than the maximum limit