curl --request POST \
--url https://api.gptmaker.ai/v2/agent/{agentId}/intentions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"description": "<string>",
"details": "<string>",
"instructions": "<string>",
"fields": [
{
"name": "<string>",
"jsonName": "<string>",
"description": "<string>",
"type": "STRING",
"required": true
}
],
"type": "WEBHOOK",
"httpMethod": "GET",
"url": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
}
],
"params": [
{
"name": "<string>",
"value": "<string>"
}
],
"variables": [
{
"valueExpression": "<string>",
"defaultFieldKey": "<string>",
"customField": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"type": "STRING",
"jsonName": "<string>"
}
}
],
"requestBody": "<string>",
"autoGenerateParams": true,
"autoGenerateBody": true
}'
{
"success": true
}
Adiciona uma nova intenção ao agente
curl --request POST \
--url https://api.gptmaker.ai/v2/agent/{agentId}/intentions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"description": "<string>",
"details": "<string>",
"instructions": "<string>",
"fields": [
{
"name": "<string>",
"jsonName": "<string>",
"description": "<string>",
"type": "STRING",
"required": true
}
],
"type": "WEBHOOK",
"httpMethod": "GET",
"url": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
}
],
"params": [
{
"name": "<string>",
"value": "<string>"
}
],
"variables": [
{
"valueExpression": "<string>",
"defaultFieldKey": "<string>",
"customField": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"type": "STRING",
"jsonName": "<string>"
}
}
],
"requestBody": "<string>",
"autoGenerateParams": true,
"autoGenerateBody": true
}'
{
"success": true
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
ID do agente
Dados da intenção a ser adicionada
The body is of type object
.
Intenção adicionada com sucesso
The response is of type object
.