Docs for Bodt
HomeApp
  • ๐ŸŽ‰Introduction to Bodt
  • ๐Ÿš€Getting Started
    • ๐Ÿ”‘Creating Account
    • ๐Ÿ“‚Setting up data
    • ๐Ÿ–Œ๏ธConfigure Widget
    • ๐Ÿ’ณAccount Details
    • ๐Ÿ™ŒGo Live!
  • ๐Ÿ“‚Data Source
    • ๐ŸŒWebsite
    • ๐Ÿ—ƒ๏ธFiles
    • โœ๏ธWordPress API Integration
    • ๐Ÿ’กFAQs
    • โš™๏ธCustom Integration
    • Notion
    • Google Drive
  • โšกChat Widget
    • Chat Prompts
    • Chat Persona
    • Lead Form
  • ๐Ÿ’ฌMessages
  • ๐Ÿ”—API
    • Chat Session
  • ๐Ÿคนโ€โ™‚๏ธProfile
  • ๐Ÿ’ณBilling
  • ๐Ÿ‘ฅTeams
  • Contacts
  • โœ‰๏ธSupport
  • ๐Ÿค”FAQs
    • What is a billing unit
    • What is your refund policy
    • Do you have a free or a trial plan?
    • Do you support multi-lingual?
    • Where is your data located?
    • Can we integrate Bodt with our custom APIs?
Powered by GitBook
On this page
  1. API

Chat Session

PreviousAPINextProfile

Last updated 10 months ago

๐Ÿ”—

This endpoint generates an AI response for a query requested by the user in a chat session with the AI chatbot

post
Query parameters
widgetIdstringRequired

ID of the widget

Body
interactionIdstringOptional

Optional id of the interaction. If provided, it will merge history of all previous chats, else the system will generate a new one

contentstringRequired

Query by a user or Response from the system

chatUserIdstringOptional

Optional id of the chat user. If not given, system will generate a new one automatically

Responses
200
Chat Message Object
application/json
403
If billing plan is inactive or plan limits have reached
post
POST /v1/interact/chat?widgetId=text HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 61

{
  "interactionId": "text",
  "content": "text",
  "chatUserId": "text"
}
{
  "interactionId": "text",
  "content": "text",
  "chatUserId": "text",
  "role": "system",
  "created": 1,
  "messageId": "text"
}