To pass additional information about your visitors from Crisp to YourGPT, you can use the Crisp JavaScript SDK and YourGPT Chatbot Studio. Here’s a step-by-step guide:
1. Mapping the Visitor Data Using Crisp JavaScript SDK
First, you’ll need to map the visitor data in the Crisp chat by using its JavaScript SDK. You can pass data like the visitor’s name, plan expiry date, or any other relevant information.
• Example: Set session data in Crisp
Add the following code snippet to your website using Crisp’s SDK:
$crisp.push(["set", "session:data", [[
["plan_expiry", "29-jan-2025"],
["name", "Rohit"]
]]]);
This will map the visitor’s data such as plan_expiry and name in Crisp. You can refer to the Crisp Web SDK Documentation for more details on how to implement this.
2. Accessing the Mapped Data in YourGPT Chatbot Studio
Once the data has been set in Crisp, you can access it in YourGPT by mapping it within the Visitor Data Settings in the YourGPT dashboard.
• Map the Visitor Data: In the YourGPT Visitor Data settings, specify the variables that you’ve passed from Crisp (e.g., plan_expiry, name).
• Accessing the Data in Chatbot Studio: After mapping, the data will be accessible in YourGPT Chatbot Studio as:
SESSION_DATA.[variable_name]
For example, you can use SESSION_DATA.plan_expiry and SESSION_DATA.name within the chatbot to personalize responses based on the visitor’s data.
This integration allows you to access with power of chatbot studio with crisp data by passing detailed visitor information from Crisp to YourGPT Chatbot, enhancing your interactions with users.
Related Articles
How to train the chatbot on previous crisp conversation?
Guide on self-learning feature to train on previous crisp chat conversation to continuously improve the chatbot's performance over time.
How to empower Team on crisp with AI knowlegebase?
Leverage AI-Powered Knowledge to Assist Your Support Agents
How to Transfer the Conversation to Human/Human To AI from Crisp Dashboard?
Transferring a conversation between a human agent and the AI chatbot on the Crisp dashboard is simple.
How to disable particular channel for crisp chat?
Learn how to disable specific channels, such as email or social media, for your chatbot
How to pass extra Context Information to AI for personalized answer?
Learn how to provide additional context from Crisp to AI Bot for more personalized responses
How to setup the Chatbot Availability on Crisp?
Setting the chatbot availability for AI chatbot