• Channels
    • Instagram DMs
    • Facebook Messenger
    • WhatsApp
    • TikTok
    • SMS
    • Website
    • Voice & Phone
  • Platform
    • Features & Integrations
    • CRM & Ticketing
    • Chatbot Templates
  • Services
    • Click-To-Message Ads
    • AI Agents
    • Chatbot Development
    • Industries
      • Restaurants
      • Real Estate
      • Influencers & Creators
      • Universities
      • Car Dealers
      • Gyms & Fitness
      • eCommerce & Retail
      • Consumer Goods
      • Law Firms
      • Museums & Attractions
      • Travel
      • Events & Entertainment
      • Hotels
  • Pricing
  • Contact
  • Log In
  • Create Bot

How to Extract Data from JSON

  • Home
  • Docs
  • How to Extract Data from JSON

Channels

24
  • How to Connect MailChimp with ChitChatBot.ai
  • How to Assign a Conversation to an Admin or Team in app.chitchatbot.ai
  • How to Add a Note to a Contact in the Inbox on app.chitchatbot.ai
  • How to Transfer Conversations to a Human or Bot in app.chitchatbot.ai
  • How to Send Conversion Events to Facebook Using app.chitchatbot.ai
  • Segment Your Audience with Tags on app.chitchatbot.ai
  • How to Notify Admins on app.chitchatbot.ai
  • How to Filter Conversations in the Inbox on app.chitchatbot.ai
  • How to Enable or Disable the Messenger Composer in app.chitchatbot.ai
  • Get Started with Telegram Automation on ChitChatBot.ai
  • 📞 Voice Automation with Twilio on ChitChatBot.ai
  • 📲 Get Started with SMS Automation Using Twilio
  • ChitChatBot System Variables & Account Fields
  • Instagram DM Automation with ChitChatBot.ai
  • WhatsApp Commerce: Connect & Manage Product Catalogs with ChitChatBot.ai
  • How to Automatically Reply to Instagram Comments
  • How to Set Up Instagram Story Reply Automation
  • Instagram Story Mention Reply Setup Guide
  • Triggers and Actions in app.chitchatbot.ai 
  • How to Send Broadcast Messages on WhatsApp Using app.chitchatbot.ai
  • How to Create and Send a WhatsApp Template Message on app.chitchatbot.ai
  • WhatsApp Business Chatbot Setup for ChitChatBot.ai
  • Custom Fields in app.chitchatbot.ai
  • How to Set Up a Poll

Webchat

12
  • How to Add Webchat to Your Website
  • How to View Actions Performed in the Inbox on app.chitchatbot.ai
  • How to Transfer Conversations to a Human or Bot in app.chitchatbot.ai
  • How to Send Conversion Events to Facebook Using app.chitchatbot.ai
  • Segment Your Audience with Tags on app.chitchatbot.ai
  • How to Notify Admins on app.chitchatbot.ai
  • How to Filter Conversations in the Inbox on app.chitchatbot.ai
  • How to Send a Flow from the Inbox in app.chitchatbot.ai
  • ChitChatBot System Variables & Account Fields
  • Custom Fields in app.chitchatbot.ai
  • Allow Your Customers to Find Places Near Them 
  • How to setup bot Persistent Menu?

Facebook Messenger

22
  • Integrating Facebook Ads with Chitchatbot
  • How to View Actions Performed in the Inbox on app.chitchatbot.ai
  • How to Transfer Conversations to a Human or Bot in app.chitchatbot.ai
  • How to Send Conversion Events to Facebook Using app.chitchatbot.ai
  • Segment Your Audience with Tags on app.chitchatbot.ai
  • How to Notify Admins on app.chitchatbot.ai
  • How to Filter Conversations in the Inbox on app.chitchatbot.ai
  • How to Use Personas in app.chitchatbot.ai
  • How to Enable or Disable the Messenger Composer in app.chitchatbot.ai
  • How to Send a Flow from the Inbox in app.chitchatbot.ai
  • ChitChatBot System Variables & Account Fields
  • Custom Fields in app.chitchatbot.ai
  • Allow Your Customers to Find Places Near Them 
  • Automatically Reply To Facebook Comments
  • How to get the JSON code for Click-To Message Adverts on Facebook & Instagram
  • Meta’s Guidelines and Policies for Using Automated Bots
  • Messenger Lists For Marketing Messages – Recurring Notifications on Messenger
  • How to setup bot Persistent Menu?
  • How to setup the greeting message?
  • How to set up Conversation starters?
  • How to setup Welcome Message for Messenger
  • Core Messenger Welcome Components

Instagram DMs

19
  • Integrating Facebook Ads with Chitchatbot
  • How to View Actions Performed in the Inbox on app.chitchatbot.ai
  • How to Transfer Conversations to a Human or Bot in app.chitchatbot.ai
  • How to Send Conversion Events to Facebook Using app.chitchatbot.ai
  • Segment Your Audience with Tags on app.chitchatbot.ai
  • How to Notify Admins on app.chitchatbot.ai
  • How to Filter Conversations in the Inbox on app.chitchatbot.ai
  • How to Send a Flow from the Inbox in app.chitchatbot.ai
  • ChitChatBot System Variables & Account Fields
  • Instagram DM Automation with ChitChatBot.ai
  • How to Automatically Reply to Instagram Comments
  • How to Set Up Instagram Story Reply Automation
  • Instagram Story Mention Reply Setup Guide
  • Custom Fields in app.chitchatbot.ai
  • Allow Your Customers to Find Places Near Them 
  • How to get the JSON code for Click-To Message Adverts on Facebook & Instagram
  • Meta’s Guidelines and Policies for Using Automated Bots
  • How to setup bot Persistent Menu?
  • How to set up Conversation starters?

Text Messages (SMS)

6
  • How to Notify Admins on app.chitchatbot.ai
  • How to Filter Conversations in the Inbox on app.chitchatbot.ai
  • How to Send a Flow from the Inbox in app.chitchatbot.ai
  • 📲 Get Started with SMS Automation Using Twilio
  • ChitChatBot System Variables & Account Fields
  • Custom Fields in app.chitchatbot.ai

WhatsApp

15
  • Integrating Facebook Ads with Chitchatbot
  • How to View Actions Performed in the Inbox on app.chitchatbot.ai
  • How to Transfer Conversations to a Human or Bot in app.chitchatbot.ai
  • How to Send Conversion Events to Facebook Using app.chitchatbot.ai
  • How to Notify Admins on app.chitchatbot.ai
  • How to Filter Conversations in the Inbox on app.chitchatbot.ai
  • How to Send a Flow from the Inbox in app.chitchatbot.ai
  • 📍 How to Get a User’s Location in app.chitchatbot.ai
  • ChitChatBot System Variables & Account Fields
  • WhatsApp Commerce: Connect & Manage Product Catalogs with ChitChatBot.ai
  • How to Send Broadcast Messages on WhatsApp Using app.chitchatbot.ai
  • How to Create and Send a WhatsApp Template Message on app.chitchatbot.ai
  • WhatsApp Business Chatbot Setup for ChitChatBot.ai
  • Custom Fields in app.chitchatbot.ai
  • Allow Your Customers to Find Places Near Them 

Voice / Phone

6
  • How to Notify Admins on app.chitchatbot.ai
  • How to Filter Conversations in the Inbox on app.chitchatbot.ai
  • 📞 Voice Automation with Twilio on ChitChatBot.ai
  • ChitChatBot System Variables & Account Fields
  • Voice Automation with AudioCodes on chitchatbot.ai
  • Custom Fields in app.chitchatbot.ai

Email

5
  • How to Connect MailChimp with ChitChatBot.ai
  • How to Notify Admins on app.chitchatbot.ai
  • How to Filter Conversations in the Inbox on app.chitchatbot.ai
  • ChitChatBot System Variables & Account Fields
  • Custom Fields in app.chitchatbot.ai

Telegram

8
  • How to Notify Admins on app.chitchatbot.ai
  • How to Filter Conversations in the Inbox on app.chitchatbot.ai
  • How to Send a Flow from the Inbox in app.chitchatbot.ai
  • How to Send a Broadcast Message to Telegram Contacts
  • How Telegram Premium Users Can Automate Conversations Using a Chatbot
  • Get Started with Telegram Automation on ChitChatBot.ai
  • ChitChatBot System Variables & Account Fields
  • Custom Fields in app.chitchatbot.ai

Integrations

41
  • External Requests & Dynamic Content in Chitchatbot.ai
  • How to Extract Data from JSON
  • API Documentation For ChitChatBot.ai
  • QR Codes & Magic Links on ChitChatbot.ai
  • Pipedrive Integration
  • Integrating Facebook Ads with Chitchatbot
  • Klaviyo Integration with ChitChatBot.ai
  • Razorpay Integration with ChitChatBot.ai
  • HubSpot Integration with ChitChatBot.ai
  • How to Connect MailChimp with ChitChatBot.ai
  • How to Connect PayPal with ChitChatBot.ai
  • How to Connect ChitChatBot to Zapier
  • How to Find and Connect the ChitChatBot Make.com (formerly Integromat) App
  • How to Send Conversion Events to Facebook Using app.chitchatbot.ai
  • 📞 Voice Automation with Twilio on ChitChatBot.ai
  • 📍 How to Get a User’s Location in app.chitchatbot.ai
  • 📲 Get Started with SMS Automation Using Twilio
  • WhatsApp Commerce: Connect & Manage Product Catalogs with ChitChatBot.ai
  • How to Generate Images Using xAI
  • How to Analyze an Image Using Claude Vision
  • How to Connect Google Gemini to Chitchatbot.ai
  • How to Connect Claude (Anthropic) to Chitchatbot.ai
  • AI Triggers: Connect ChatGPT to Automation & External Tools
  • 🗣️ How to Convert Speech to Text with OpenAI
  • How to Analyze an Image Using Google Gemini Vision
  • Generating Images Using Google Gemini
  • Editing an Image Using Google Gemini
  • CRM Pipeline Management in Chitchatbot.ai
  • Appointment Scheduling Using OpenAI or Google Gemini
  • Appointment Scheduling Manager – Set Up Your Calendar
  • Enhance Customer Support with ChatGPT (OpenAI Integration)
  • Triggers and Actions in app.chitchatbot.ai 
  • Connect OpenAI ChatGPT to your ChitChatBot.ai Account
  • Voice Automation with AudioCodes on chitchatbot.ai
  • How to Generate Images Using OpenAI on Chitchatbot.ai
  • Custom Fields in app.chitchatbot.ai
  • Allow Your Customers to Find Places Near Them 
  • How to Analyse an Image Using OpenAI Vision
  • Google Sheets – Dynamic Gallery
  • Google Sheets
  • ActiveCampaign

AI Features

15
  • How to Extract Data from JSON
  • How to Generate Images Using xAI
  • How to Analyze an Image Using Claude Vision
  • How to Connect Google Gemini to Chitchatbot.ai
  • How to Connect Claude (Anthropic) to Chitchatbot.ai
  • AI Triggers: Connect ChatGPT to Automation & External Tools
  • 🗣️ How to Convert Speech to Text with OpenAI
  • How to Analyze an Image Using Google Gemini Vision
  • Generating Images Using Google Gemini
  • Editing an Image Using Google Gemini
  • Appointment Scheduling Using OpenAI or Google Gemini
  • Enhance Customer Support with ChatGPT (OpenAI Integration)
  • Connect OpenAI ChatGPT to your ChitChatBot.ai Account
  • Voice Automation with AudioCodes on chitchatbot.ai
  • How to Generate Images Using OpenAI on Chitchatbot.ai

Tools

36
  • Managing Your Ecommerce Products on Chitchatbot
  • Setting Delivery Costs by Location
  • Adding Ecommerce Categories
  • How to Sell with the Webshop
  • How to Use Your Own Custom Checkout Page with Chitchatbot
  • 🛍️ Introduction to Chitchatbot’s Built-in eCommerce Module
  • 🛍️ eCommerce Settings on ChitChatbot.ai
  • External Requests & Dynamic Content in Chitchatbot.ai
  • How to Implement a Referral System
  • How to Add Webchat to Your Website
  • How to Extract Data from JSON
  • API Documentation For ChitChatBot.ai
  • How to Copy Flows & Entire Bot Builds Using Templates
  • QR Codes & Magic Links on ChitChatbot.ai
  • Entry Point Links & Referral Parameters
  • Integrating Facebook Ads with Chitchatbot
  • Analytics in ChitChatBot.ai
  • How to Connect PayPal with ChitChatBot.ai
  • How to Connect ChitChatBot to Zapier
  • How to Transfer Conversations to a Human or Bot in app.chitchatbot.ai
  • How to Send Conversion Events to Facebook Using app.chitchatbot.ai
  • Segment Your Audience with Tags on app.chitchatbot.ai
  • How to Set Up Keyword Automated Responses Across Channels
  • How to Notify Admins on app.chitchatbot.ai
  • How to Filter Conversations in the Inbox on app.chitchatbot.ai
  • How to Send a Flow from the Inbox in app.chitchatbot.ai
  • How to Import Contacts into app.chitchatbot.ai
  • 📍 How to Get a User’s Location in app.chitchatbot.ai
  • WhatsApp Commerce: Connect & Manage Product Catalogs with ChitChatBot.ai
  • Appointment Scheduling Using OpenAI or Google Gemini
  • Appointment Scheduling Manager – Set Up Your Calendar
  • Triggers and Actions in app.chitchatbot.ai 
  • Add Admins & Agents To Your Account
  • Custom Fields in app.chitchatbot.ai
  • Bot Simulator Tool
  • How to Set Up a Poll

Platform

60
  • Managing Your Ecommerce Products on Chitchatbot
  • Adding Ecommerce Categories
  • How to Sell with the Webshop
  • How to Use Your Own Custom Checkout Page with Chitchatbot
  • 🛍️ Introduction to Chitchatbot’s Built-in eCommerce Module
  • 🛍️ eCommerce Settings on ChitChatbot.ai
  • Messenger Lists For Marketing Messages – Recurring Notifications on Messenger
  • ChitChatBot and GDPR Compliance
  • Dynamic Multiple Choice Options
  • How to Format Date and Time
  • Math Calculations Inside Your Chatbot
  • How to Enable Development Mode – Test Bot for Admins Only
  • External Requests & Dynamic Content in Chitchatbot.ai
  • How to Provide Your Own Language Translations for Built-in Flows
  • How to Implement a Referral System
  • How to Add Webchat to Your Website
  • How to Extract Data from JSON
  • How to Connect Your Google, Facebook, or Microsoft Account for Login
  • API Documentation For ChitChatBot.ai
  • How to Copy Flows & Entire Bot Builds Using Templates
  • File and Video Size Limits on ChitChatbot.ai
  • QR Codes & Magic Links on ChitChatbot.ai
  • Entry Point Links & Referral Parameters
  • HubSpot Integration with ChitChatBot.ai
  • Analytics in ChitChatBot.ai
  • How to Connect MailChimp with ChitChatBot.ai
  • How to Connect PayPal with ChitChatBot.ai
  • How to Connect ChitChatBot to Zapier
  • How to Find and Connect the ChitChatBot Make.com (formerly Integromat) App
  • How to Block a Contact in app.chitchatbot.ai
  • How to Archive a Conversation in app.chitchatbot.ai
  • How to Delete a Contact in app.chitchatbot.ai
  • How to Assign a Conversation to an Admin or Team in app.chitchatbot.ai
  • Step-by-Step Guide: Mark a Conversation as Follow-Up
  • How to View Actions Performed in the Inbox on app.chitchatbot.ai
  • How to Add a Note to a Contact in the Inbox on app.chitchatbot.ai
  • How to Transfer Conversations to a Human or Bot in app.chitchatbot.ai
  • How to Send Conversion Events to Facebook Using app.chitchatbot.ai
  • Segment Your Audience with Tags on app.chitchatbot.ai
  • How to Set Up Keyword Automated Responses Across Channels
  • How to Notify Admins on app.chitchatbot.ai
  • How to Use Saved Replies in the Inbox on app.chitchatbot.ai
  • How to Filter Conversations in the Inbox on app.chitchatbot.ai
  • How to Use Personas in app.chitchatbot.ai
  • How to Enable or Disable the Messenger Composer in app.chitchatbot.ai
  • How to Send a Flow from the Inbox in app.chitchatbot.ai
  • How to Import Contacts into app.chitchatbot.ai
  • 📞 Voice Automation with Twilio on ChitChatBot.ai
  • 📍 How to Get a User’s Location in app.chitchatbot.ai
  • 📲 Get Started with SMS Automation Using Twilio
  • ChitChatBot System Variables & Account Fields
  • WhatsApp Commerce: Connect & Manage Product Catalogs with ChitChatBot.ai
  • 🗣️ How to Convert Speech to Text with OpenAI
  • Editing an Image Using Google Gemini
  • CRM Pipeline Management in Chitchatbot.ai
  • Appointment Scheduling Using OpenAI or Google Gemini
  • Appointment Scheduling Manager – Set Up Your Calendar
  • Enhance Customer Support with ChatGPT (OpenAI Integration)
  • How to Automatically Reply to Instagram Comments
  • How to Rename Your Account and Change Your Profile Image on app.chitchatbot.ai  
View Categories
  • Home
  • Docs
  • AI Features
  • How to Extract Data from JSON

How to Extract Data from JSON

2 min read

JSON (JavaScript Object Notation) is a widely used data format for exchanging data between systems. Now, with AI models like ChatGPT, Claude, or Gemini, you can analyze conversations or images and generate JSON responses. On ChitChatbot.ai, you can easily extract data from these JSON responses and store it in multiple custom fields.


What is the “Get Data from JSON” Tool?

On ChitChatbot.ai, the tool called “Get Data from JSON” helps you extract data from JSON responses using JSONPath.
In flow builder navigate to:
Actions > Tools > Get Data from JSON.

json chatbot extract - ChitChatBot - AI Bot Building Platform

This tool can also be used with ref link payloads that contain JSON data, making it versatile for many use cases. If you do use it this way make sure “Get Data from JSON” action node is your starting block or near the start of you flow depending on your exact setup, this will ensure the data is extracted as soon as possible.


How to Extract Data Using JSONPath

JSONPath is a query language that lets you pinpoint specific pieces of data within a JSON document.

Tips for Using JSONPath:

  • Use an online JSONPath tool to help you find the correct JSONPath expressions, such as:
    👉 JSONPath Finder & Validator
  • Carefully test your JSONPath to ensure it extracts the desired data. e.g $.tax_id > Save to tax_id custom fields

Handling Success & Failure

  • Success Path: Runs if at least one custom field is successfully filled with data.
  • Failure Path: Runs if the JSON is invalid or no data is saved to any custom field.

Important:
If you’re saving data to multiple custom fields, use Conditions to check if a field was populated. If the JSONPath is incorrect, it might overwrite existing data with empty values.


Using AI Models to Return JSON Responses

To have an AI model return data in JSON, include a clear example in your prompt.
For instance, if you have an image of a receipt with fields like Tax ID, email, and phone number, instruct the AI like this:

Read this invoice and return the data in JSON format. I need the customer Tax ID, outstanding balance, email, and phone number.  
Here’s the JSON structure I need:

{
"email": "",
"phone": "",
"balance": "",
"tax_id": ""
}
json flow - ChitChatBot - AI Bot Building Platform

After the AI generates the response in JSON, use the “Get Data from JSON” action in ChitChatbot.ai flow builder to extract and save the data to your custom fields.

Updated on 4 June 2025

What are your Feelings

  • Happy
  • Normal
  • Sad

Related Docs

  • How to Analyze an Image Using Google Gemini Vision
Share This Article :
  • Facebook
  • X
  • LinkedIn
  • Pinterest
How to Generate Images Using xAI

Integrated AI. Infinite possibilities.

5
4
3
2
  • Log In
  • Sign Up
g2 reviews
Resources
  • Platform API
  • Documentation
  • Blog
  • FAQ
meta tech provider verified
Get in touch

Engage on any channel, connect with more people, and drive results - all in one chatbot platform.

Copyright © 2025 ChitChatBot.ai

Chit Chat Communications Ltd. is a limited company registered in England and Wales. Registered number: 13422957. VAT GB433681590.

  • Terms & Conditions
  • Privacy Policy