Skip to main content
Back to Actions Integrations Use prebuilt Asana action templates to auto-create dialog tasks. Prerequisites: Configure Asana and install templates before proceeding. Navigate to Automation AI > Use Cases > Dialogs, then click the auto-created dialog to open the canvas with entity nodes, service nodes, and message scripts.

Supported Actions

ActionDescriptionMethod
Get a Task by IDRetrieves a task by task IDGET
Find Tasks Created By a UserRetrieves tasks created by a userGET
Find Tasks Assigned to UserRetrieves tasks assigned to a userGET
List All ProjectsReturns all projectsPOST
List All UsersReturns all usersPOST

Get Task by ID

  1. Install the template from Asana Templates.
  2. The Get Task by Id dialog task is added with: Dialog task added
    • getTaskById – User intent to fetch a task by ID.
    • taskId – Entity node for the task ID.
    • getTaskByIdService – Bot action service to fetch the task. Click Edit Request to modify parameters. Edit request Click +Add Response to add sample responses: Add Response Sample Response:
      {
        "data": {
          "gid": "1204307990977944",
          "assignee": { "gid": "1204191722074650", "name": "Alan Walker" },
          "created_at": "2023-03-31T11:11:44.658Z",
          "created_by": { "gid": "1204191722074650", "name": "Alan Walker" },
          "name": "NEW TASK",
          "notes": "The description",
          "permalink_url": "https://app.asana.com/0/1xx60369/1XXX944",
          "projects": [{ "gid": "1204191735460369", "name": "Int1" }],
          "workspace": { "gid": "21968248715756", "name": "xyz.com" }
        }
      }
      
    • getTaskByIdMessage – Message node to display the task result.
  3. Click Train to complete training.
  4. Click Talk to Bot to test.
  5. Enter the task ID when prompted. Enter Task ID
  6. The task is returned. Click View Task to open it in Asana. Task found with ID View task

Find Tasks Created by a User

  1. Install the template from Asana Templates.
  2. The Find Tasks Created by User dialog task is added with: Dialog task
    • findTasksCreatedByUser – User intent to retrieve tasks created by a user.
    • workSpaceId – Entity node for the workspace ID.
    • userId – Entity node for the user ID.
    • findCreatedTasksService – Bot action service to find created tasks. Click +Add Response: Bot action service Sample Response:
      {
        "data": [
          {
            "gid": "1204325494675011",
            "assignee": { "gid": "12041917XXX0", "name": "Alan Walker" },
            "created_at": "2023-04-03T20:32:00.270Z",
            "name": "30Apr NEW TASK",
            "notes": "The description",
            "projects": [{ "gid": "1204191735460369", "name": "Int1" }],
            "workspace": { "gid": "21968248715756", "name": "xyz.com" }
          }
        ]
      }
      
    • createdTaskMessage – Message node to display results.
  3. Click Train, then Talk to Bot to test.
  4. Follow prompts to enter workspace ID and user ID. Find tasks with user ID Enter user ID
  5. Click View Task to open in Asana. View task

Find Tasks Assigned to a User

  1. Install the template from Asana Templates.
  2. The FindTasks Assigned to a User dialog task is added with: Dialog task
    • findTasksAssignedToUser – User intent to retrieve tasks assigned to a user.
    • workSpaceId – Entity node for workspace ID.
    • userId – Entity node for user ID.
    • findAssignedTasksService – Bot action service to fetch assigned tasks. Click +Add Response: Bot action service Sample Response:
      {
        "data": [
          {
            "gid": "1204325494675011",
            "assignee": { "gid": "1204191722074650", "name": "Alan Walker" },
            "name": "30Apr NEW TASK",
            "projects": [{ "gid": "1204191735460369", "name": "Int1" }],
            "workspace": { "gid": "21968248715756", "name": "xyz.com" }
          }
        ]
      }
      
    • assignedTaskMessage – Message node to display results.
  3. Click Train, then Talk to Bot to test.
  4. Follow prompts to find tasks. Find task Enter task ID
  5. Click View Task to open in Asana.

List All Projects

  1. Install the template from Asana Templates.
  2. The List All Projects dialog task is added with: Dialog task
    • listAllProjects – User intent to retrieve all projects.
    • listAllProjectsService – Bot action service to retrieve all projects. Click +Add Response: Bot action service Sample Response:
      {
        "data": [
          {
            "gid": "1190334540433515",
            "name": "integration",
            "owner": { "gid": "1190337001098545", "name": "Alan" },
            "workspace": { "gid": "21968248715756", "name": "xyz.com" }
          }
        ]
      }
      
    • listProjectMessage – Message node to display results.
  3. Click Train, then Talk to Bot to test.
  4. Follow prompts to list projects. List projects prompt
  5. Click View Project to open in Asana.

List All Users

  1. Install the template from Asana Templates.
  2. The List All Users dialog task is added with: Dialog task
    • listAllUsers – User intent to retrieve all users.
    • listAllUsersService – Bot action service to find all users. Click +Add Response: Bot action service Sample Response:
      {
        "data": [
          {
            "gid": "11xxxx674034",
            "email": "alan.walker@xyz.com",
            "name": "Alan Walker",
            "workspaces": [{ "gid": "219xxx756", "name": "xyz.com" }]
          }
        ]
      }
      
    • listAllUsersMessage – Message node to display results.
  3. Click Train, then Talk to Bot to test.
  4. Follow prompts to list users. List users prompt
  5. Click View User to open in Asana.