Path parameters
-
The SID of the Assistant that is the parent of the new resource.
Body
-
The ISO language-country string that specifies the language used for the new query. For example:
en-US
. -
ModelBuild string
The SID or unique name of the Model Build to be queried.
-
The end-user's natural language input. It can be up to 2048 characters long.
-
Tasks string
The list of tasks to limit the new query to. Tasks are expressed as a comma-separated list of task
unique_name
values. For example,task-unique_name-1, task-unique_name-2
. Listing specific tasks is useful to constrain the paths that a user can take.
POST /v1/Assistants/{AssistantSid}/Queries
curl \
-X POST https://autopilot.twilio.com/v1/Assistants/{AssistantSid}/Queries \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'Language=string&ModelBuild=string&Query=string&Tasks=string'
Request example
{
"Language": "string",
"ModelBuild": "string",
"Query": "string",
"Tasks": "string"
}
Request examples
{
"Language": "string",
"ModelBuild": "string",
"Query": "string",
"Tasks": "string"
}
Response examples (201)
{
"account_sid": "string",
"assistant_sid": "string",
"date_created": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"dialogue_sid": "string",
"language": "string",
"model_build_sid": "string",
"query": "string",
"sample_sid": "string",
"sid": "string",
"source_channel": "string",
"status": "string",
"url": "https://example.com"
}
Response examples (201)
{
"account_sid": "string",
"assistant_sid": "string",
"date_created": "2024-05-04T09:42:00+00:00",
"date_updated": "2024-05-04T09:42:00+00:00",
"dialogue_sid": "string",
"language": "string",
"model_build_sid": "string",
"query": "string",
"sample_sid": "string",
"sid": "string",
"source_channel": "string",
"status": "string",
"url": "https://example.com"
}