AI HelpCenter | YourGPT

Find answers to your questions

How to pass extra Information about visitor from Crisp to YourGPT?
Guide on passing the extra content data from crisp to YourGPT

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.

Was this article helpful?
©2024