Skip to main content
POST
/
assistants
/
create-web-text
cURL
curl --request POST \
  --url https://alto.dialme.at/api/altov2/public/assistants/create-web-text \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "template_id": "<string>",
  "name": "<string>",
  "language": "en-US",
  "structured_data": [
    {
      "type": "short_response",
      "value": "<string>",
      "choices": [
        "<string>"
      ]
    }
  ],
  "webhook": "<string>",
  "logo": {
    "src": "<string>",
    "href": "<string>"
  },
  "hidden_fields": [
    "<string>"
  ]
}
'
{
  "message": "success",
  "result": {
    "_id": "as_***",
    "template_id": "tp_***",
    "title": "<string>",
    "conversational_states": {},
    "language": "<string>",
    "slug": "<string>",
    "embed": "<string>",
    "structured_data": [
      "<unknown>"
    ],
    "webhook": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Retrieve your key from Dashboard.

Body

application/json
template_id
string
required
Required string length: 24
name
string
required
Required string length: 3 - 180
language
enum<string>
required
Available options:
en-US,
es-ES
structured_data
object[]
webhook
string

We will trigger post request to this webhook url with this data

{
"data": {
"conversation_type": "web_text",
"conversation_id": "",
"assistant_id": "",
"full_transcript": [],
"edited_transcript": [],
"data_points": [],
"timestamp": 0
},
"signature": ""
}

We generated a signature to secure the webhook payload, please refer to the colab example.

Minimum string length: 5
hidden_fields
string[]

Hidden Fields allows you to use data you already have, track information about your respondents, please refer to our colab example

Required string length: 3 - 180

Response

Successful response

message
string
Example:

"success"

result
object