curl --request GET \
--url https://api.gptmaker.ai/v2/agent/{agentId}/idle-actions \
--header 'Authorization: Bearer <token>'{
"actions": [
{
"id": "<string>",
"type": "SEND_MESSAGE",
"instructions": "<string>",
"workingHours": {
"id": "<string>",
"tenant": "<string>",
"tenantOwner": "<string>",
"createdAt": 123,
"updatedAt": 123,
"active": true,
"days": [
{
"id": "<string>",
"tenant": "<string>",
"tenantOwner": "<string>",
"createdAt": 123,
"updatedAt": 123,
"active": true,
"dayWeek": 123,
"hours": [
{
"id": "<string>",
"tenant": "<string>",
"tenantOwner": "<string>",
"createdAt": 123,
"updatedAt": 123,
"start": "08:00",
"end": "12:00",
"sequence": 123
}
]
}
]
},
"allowAllHours": true,
"seconds": 123
}
],
"finishOn": {
"seconds": 123
}
}Listar as ações de inatividade
curl --request GET \
--url https://api.gptmaker.ai/v2/agent/{agentId}/idle-actions \
--header 'Authorization: Bearer <token>'{
"actions": [
{
"id": "<string>",
"type": "SEND_MESSAGE",
"instructions": "<string>",
"workingHours": {
"id": "<string>",
"tenant": "<string>",
"tenantOwner": "<string>",
"createdAt": 123,
"updatedAt": 123,
"active": true,
"days": [
{
"id": "<string>",
"tenant": "<string>",
"tenantOwner": "<string>",
"createdAt": 123,
"updatedAt": 123,
"active": true,
"dayWeek": 123,
"hours": [
{
"id": "<string>",
"tenant": "<string>",
"tenantOwner": "<string>",
"createdAt": 123,
"updatedAt": 123,
"start": "08:00",
"end": "12:00",
"sequence": 123
}
]
}
]
},
"allowAllHours": true,
"seconds": 123
}
],
"finishOn": {
"seconds": 123
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Id do agente
Lista as configurações de ações de inatividade
Lista de ações configuradas para inatividade
Show child attributes
Identificador da ação
Tipo da ação de inatividade
SEND_MESSAGE, FINISH_INTERACTION Mensagem ou instruções da ação
Horários de funcionamento permitidos para execução da ação
Show child attributes
Timestamp de criação
Timestamp de atualização
Show child attributes
Dia da semana (0=Domingo, 1=Segunda, ...)
Show child attributes
"08:00"
"12:00"
Ordem do intervalo
Indica se a ação pode ser executada em qualquer horário
Tempo de inatividade (em segundos) para disparar a ação