Skip to main content
POST
/
conversations
Create conversation
curl --request POST \
  --url https://app.famulor.de/api/conversations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "assistant_id": "<string>"
}
'
{
  "status": true,
  "conversation_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
  "history": [
    {
      "role": "assistant",
      "content": "Hello John Smith! Welcome to Acme Corp support. How can I help you today?"
    }
  ]
}
Create a new conversation with your Famulor AI assistant. Use this endpoint to start a widget or test conversation and receive the initial history.

Request Body

assistant_id
string
required
UUID of the assistant that should handle the conversation
type
string
default:"widget"
Conversation type. Options: widget (paid) or test (free for development)
variables
object
Custom variables injected into the assistant context (accessible via {{variable_name}})

Request Examples

Response Fields

status
boolean
required
Indicates whether the request succeeded
conversation_id
string
required
UUID of the created conversation; use it for subsequent messages
history
array
Initial conversation history. Empty if the assistant has no initial message.

Response Examples

{
  "status": true,
  "conversation_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
  "history": [
    {
      "role": "assistant",
      "content": "Hello John Smith! Welcome to Acme Corp support. How can I help you today?"
    }
  ]
}

Notes

  • type: "widget" conversations are billed; type: "test" is free for development.
  • Provide meaningful variables to personalize the assistant’s first reply.
  • Continue the chat with Send Message and fetch history with Get Conversation.