What the model is told
Create a task in Asana for the team to follow up. Give it a short name and put the customer's details and request in the notes. Confirm with the customer before calling. Tell them a task has been raised. The response includes the task gid.
Request
POSThttps://app.asana.com/api/1.0/tasks
Headers
Content-Typeapplication/jsonAuthorizationBearer YOUR_ASANA_ACCESS_TOKEN
Body
{
"data": {
"name": "{{name}}",
"notes": "{{notes}}",
"projects": [
"YOUR_ASANA_PROJECT_GID"
]
}
}Parameters
name stringA short task name.notes stringThe detail the team needs, including how to contact the customer.
Engage payload
{
"source": "VOICE_AI",
"tool": {
"id": "ac11fb77-854f-429c-9996-dcd4f00ed49f",
"type": "HTTP_REQUEST",
"label": "Create Asana Task",
"name": "create_asana_task",
"customName": false,
"description": "Create a task in Asana for the team to follow up. Give it a short name and put the customer's details and request in the notes. Confirm with the customer before calling. Tell them a task has been raised. The response includes the task gid.",
"parameters": [
{
"name": "name",
"type": "string",
"description": "A short task name."
},
{
"name": "notes",
"type": "string",
"description": "The detail the team needs, including how to contact the customer."
}
],
"config": {
"endpoint": {
"method": "POST",
"url": "https://app.asana.com/api/1.0/tasks"
},
"headers": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Authorization",
"value": "Bearer YOUR_ASANA_ACCESS_TOKEN"
}
],
"body": "{\n \"data\": {\n \"name\": \"{{name}}\",\n \"notes\": \"{{notes}}\",\n \"projects\": [\n \"YOUR_ASANA_PROJECT_GID\"\n ]\n }\n}",
"timeout": null
}
}
}IDs are regenerated on every copy.