Asana

Add Asana Task Comment

Adds a comment to an existing Asana task.

Unverified

What the model is told

Add a comment to an Asana task using its task gid. Use it to record new information from the customer. Confirm the wording first where needed. Tell the customer the note has been added.

Request

POSThttps://app.asana.com/api/1.0/tasks/{{taskGid}}/stories

Headers

  • Content-Typeapplication/json
  • AuthorizationBearer YOUR_ASANA_ACCESS_TOKEN

Body

{
  "data": {
    "text": "{{comment}}"
  }
}

Parameters

  • taskGid stringThe gid of the Asana task.
  • comment stringThe comment text.

Engage payload

{
  "source": "VOICE_AI",
  "tool": {
    "id": "a3d4ad61-b450-4d63-9aa9-f61e651fbdb1",
    "type": "HTTP_REQUEST",
    "label": "Add Asana Task Comment",
    "name": "add_asana_task_comment",
    "customName": false,
    "description": "Add a comment to an Asana task using its task gid. Use it to record new information from the customer. Confirm the wording first where needed. Tell the customer the note has been added.",
    "parameters": [
      {
        "name": "taskGid",
        "type": "string",
        "description": "The gid of the Asana task."
      },
      {
        "name": "comment",
        "type": "string",
        "description": "The comment text."
      }
    ],
    "config": {
      "endpoint": {
        "method": "POST",
        "url": "https://app.asana.com/api/1.0/tasks/{{taskGid}}/stories"
      },
      "headers": [
        {
          "name": "Content-Type",
          "value": "application/json"
        },
        {
          "name": "Authorization",
          "value": "Bearer YOUR_ASANA_ACCESS_TOKEN"
        }
      ],
      "body": "{\n  \"data\": {\n    \"text\": \"{{comment}}\"\n  }\n}",
      "timeout": null
    }
  }
}

IDs are regenerated on every copy.