Real-World Use Case: Real-Time Product Availability
An e-commerce business can use this feature to provide real-time product availability and details to their customers. For instance, an online retail store’s chatbot could pull product data from a JSON API provided by the store’s inventory system. When a user inquires about a specific product, the chatbot can dynamically fetch and display the current stock status, price, and other details using the “Get Data from JSON” action. This ensures that the information provided is accurate and up-to-date.Steps to Implement:
Select the ActionIn the chatbot builder, navigate to the action list and select “Get Data from JSON”.

Configure the JSON SourceSpecify the JSON data source (e.g., a URL to the e-commerce API endpoint) and define the JSON path to extract the required product information.

Map the DataMap the extracted JSON data to custom fields in the chatbot, which can then be used in messages or further logic.

Implementation Example:
- User Inquiry: A customer asks the chatbot, “Is the XYZ smartwatch available?”
- Data Retrieval: The chatbot uses the “Get Data from JSON” action to fetch the latest data from the store’s inventory system.
- Response: The chatbot responds, “The XYZ smartwatch is currently in stock for $199. Would you like to add it to your cart?”

