Skip to main content
POST
/
api
/
conversation-flows
Create conversation flow
curl --request POST \
  --url https://api.upon-ai.com/api/conversation-flows \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "workspaceId": 123,
  "start_speaker": "<string>",
  "nodes": [
    {
      "id": "<string>",
      "type": "<string>",
      "instruction": {
        "type": "<string>",
        "text": "<string>"
      },
      "edges": [
        {
          "id": "<string>",
          "transition_condition": {
            "type": "<string>",
            "prompt": "<string>"
          },
          "destination_node_id": "<string>"
        }
      ]
    }
  ],
  "global_prompt": "<string>",
  "model_choice": {
    "type": "<string>",
    "model": "<string>"
  }
}
'
{
  "conversation_flow_id": "<string>",
  "version": 123,
  "start_speaker": "<string>",
  "workspaceId": 123,
  "global_prompt": "<string>",
  "model_choice": {
    "type": "<string>",
    "model": "<string>"
  },
  "nodes": [
    {
      "id": "<string>",
      "type": "<string>",
      "instruction": {
        "type": "<string>",
        "text": "<string>"
      },
      "edges": [
        {
          "id": "<string>",
          "transition_condition": {
            "type": "<string>",
            "prompt": "<string>"
          },
          "destination_node_id": "<string>"
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
workspaceId
integer
required
start_speaker
string
required
nodes
object[]
required
global_prompt
string
model_choice
object

Response

201 - application/json

Newly created conversation flow.

conversation_flow_id
string
required
version
integer
required
start_speaker
string | null
workspaceId
integer | null
global_prompt
string | null
model_choice
object
nodes
object[]