Start Conversation
API Endpoint
POST https://api.genaifactory.ai/v1/start_conversationHeaders
Name
Type
Required
Description
formacloud-api-key
string
Yes
API key for authentication
Request Body
Name
Type
Required
Description
goal
string
Yes
The goal or topic of the conversation
session_id
string
No
An optional session ID (auto-generated if empty)
Example Request
curl --location 'https://api.genaifactory.ai/v1/start_conversation' \
--header 'formacloud-api-key: abc123' \
--header 'Content-Type: application/json' \
--data '{
"goal":"Ask the user what he/she wants, and help them create it.",
"session_id":"shuxuan-test-1"
}'Response
Returns a JSON object containing session details and the first conversation step.
Field
Type
Description
session_id
string
Unique session identifier
current_step
object
The current step in the conversation
Example Response
Last updated
Was this helpful?
