Some of the APIs in the contact APIs section allow you to create, list, and delete contacts.
const widgetOptions = {
initialMessage: "Hello! How can I help you?",
token: "your_copilot_token_goes_here",
user: {
data: {
name: "your_user_name",
email: "your_user_email",
customData: {
// any custom data you want to send to the copilot backend
"key1": "value1",
"balance": 100,
"age": 25,
}
}
},
Was this page helpful?