Userdesk
Home
  • 👋Welcome to Userdesk
  • Overview
    • 💡What we do
  • âš¡Product Guides
    • Training data
      • Sitemaps
        • Shopify Store
        • Gitbook
    • Chatbot configuration
      • Welcome message
      • Escalate to human
      • Missing response message
    • Add the Chatbot widget to your website
      • WordPress
      • Shopify
      • Webflow
      • Wix
      • Notion pages
      • Any Website
    • Slack integration
    • JavaScript Widget
    • Customize Widget CSS
    • Chat Widget Changelog
  • 📖API
    • Authentication
    • Create a conversation
    • Send a message
Powered by GitBook
On this page

Was this helpful?

  1. API

Create a conversation

Create a new conversation by making an HTTP POST request

POST https://api.userdesk.io/v1/chatbot/:chabot_id/conversation

Create a new conversation for a specific chatbot.

The fields marked with * are mandatory

Headers

Name
Type
Description

Authorization*

String

Bearer <your_chatbot_api_key>

Request Body

Name
Type
Description

userName

String

Name of the user

userEmail

String

Email of the user

{
  "success": true,
  "conversationId": "7bb301ad-e691-4341-8afb-b4407c4ffdf2",
  "response": "Hello, how can I help you?"
}

If the request is successful, the response includes the conversationId and the first message from the Chatbot, if configured.

{
  "success": true,
  "conversationId": "7bb301ad-e691-4341-8afb-b4407c4ffdf2",
  "response": "Hello, how can I help you?"
}

PreviousAuthenticationNextSend a message

Last updated 1 year ago

Was this helpful?

📖