DEV

Claude AI

Claude AI Connection

Put Claude AI to Work with @Human Automations and @Human Agents

The Claude AI Connection documents all Triggers, Actions and Query Operations available for creating automations via the Claude AI API.

What can you do with the Asana Connection?

  • Connect to the Claude AI API in a few clicks

  • Use the related Claude AI Operations (see below) in @Human Automations or @Human Agents

Trigger Operations

Message Created

Triggers on: messages/created

Triggered when a new message is successfully generated and created in Claude AI.

Message Batch Ended

Triggers on: message_batches/ended

Triggered when an asynchronous message batch has finished processing.

Message Batch Expired

Triggers on: message_batches/expired

Triggered when a message batch has reached its expiration time before completion.

Model Created

Triggers on: models/created

Triggered when a new AI model is added and becomes available in the system.

File Created

Triggers on: files/created

Triggered when a new file is successfully uploaded and processed.

File Deleted

Triggers on: files/deleted

Triggered when an existing file is removed from the system.

Skill Created

Triggers on: skills/created

Triggered when a new custom agent skill is successfully defined.

Skill Deleted

Triggers on: skills/deleted

Triggered when a custom agent skill is removed.

Action Operations

Action: Send Message

Action: Send Message Batch

Action: Estimate Token Usage

Action: Upload File

Action: Create Skill

Query Operations

Query: List Models

Query: List Files

Query: List Skills

Example link

Obtaining Access Credentials

To obtain a system-to-system Personal Access Token (PAT) for Anthropic, follow these steps:

Prerequisites

  • An Anthropic account (sign up at Anthropic Console if needed).

  • Admin or Developer access to generate API keys.

Steps to Generate a PAT

  1. Log in to the Anthropic Console.

  2. Navigate to "API Keys" (under Manage).

  3. Click "Create Key".

  4. Provide a name/description (e.g., "System-to-System Access").

  5. Click "Add".

  6. Copy the generated key (this is your PAT—store it securely).

Configuring Webhooks

  1. Set up a webhook trigger on your chosen automation platform to receive external data.

  2. Configure an action that uses the Claude AI API (passing your PAT generated above).

  3. Implement a polling mechanism if you need to monitor asynchronous operations, such as the Message Batches API.

  4. Check the status of your batch requests periodically via the GET /v1/messages/batches/{batch_id} endpoint.

  5. Trigger downstream actions once the processing_status returns as ended.

Code (Apache v2.0): Service Connectivity and Metadata

Code (Apache v2.0): List of External Resources and Internal Mapping

Last updated