Step 1: Add and Configure Your API
Access Custom API Settings
- Go to Integrations
- Find the Custom APIs card and click Configure
Add Your API
- Click Add API to create a new custom API connection
- Enter the API details:
- Name: A descriptive name for this API
- Endpoint URL: The full URL of your API endpoint
- Method: Select GET, POST, PUT, or DELETE
- Headers: Add any required authentication headers or content-type specifications
Use Dynamic Variables
You can include dynamic variables from the ticket in your API request. These variables are replaced with actual ticket data when the API is called:| Variable | Description |
|---|---|
{{ticket.id}} | The ticket ID |
{{ticket.subject}} | The ticket subject line |
{{ticket.priority}} | The ticket priority |
{{ticket.status}} | The ticket status |
{{ticket.accountId}} | The customer account id on the ticket |
Add Expressions
Expressions let you extract specific values from API responses to use as conditions in triggers and workflows.- Click Add Expression
- Enter an expression using the format
response.<fieldName>- Example:
response.accountStatusto extract the account status field - Example:
response.subscription.tierto access nested fields
- Example:
- Give the expression a descriptive name that will appear in the trigger builder
Define Response Schema
Specify which fields from the API response you want to use in trigger actions:- Click Add Field under Response Schema
- Enter the field path (e.g.,
customerName,orderStatus,accountBalance) - Select the field type (string, number, boolean)
- Repeat for each field you want available in actions
Save Your Configuration
Click Save to store your API configuration. The API is now available for use in triggers and workflows.Step 2: Use the APIs in Triggers
Create a New Trigger
- Go to Automation → Triggers
- Click Create New Trigger
- Give your trigger a name and description
Add API Conditions
Your custom API expressions appear as condition cards in the trigger builder:- Under Conditions, find your API expression cards
- Click to add a condition based on your API response
- Set the comparison operator and value
- Example: “Account Status equals active”
- Example: “Subscription Tier is not free”
Use API Data in Actions
The response fields you defined are available in these trigger actions:- Auto-respond to customer: Include API response data in automated replies using merge fields
- Create Private Note: Add API data to internal notes for agent reference
Save and Activate
- Review your trigger configuration
- Click Save to create the trigger
- Toggle the trigger to Active to enable it
Example Use Case
Scenario: Automatically prioritize tickets from enterprise customers.- Configure API: Create an API that checks your CRM for customer account tier
- Add Expression:
response.accountTierto extract the tier value - Create Trigger:
- Condition:
response.accountTier equals enterprise - Action: Set ticket priority to High and add a private note with account details
- Condition: