- In AI FAQ workflows: IrisAgent collects the required fields from the customer, calls your API, and explains the response in plain language.
- As a trigger condition: for example, “only run this automation if the customer is on the Premium plan.”
Step 1: Open the Custom APIs configuration
- In the IrisAgent dashboard, go to Data Sources → APIs.
- On the Custom APIs card, click Configure.
Step 2: Add a credential (optional)
Skip this if your API needs no authentication or uses a token in the URL.- Open the Credentials tab and click Add Credential.
- Fill in:
- Click Create Credential.
You cannot view a credential value after saving. Keep a copy somewhere safe.
Step 3: Create a Custom API
On the APIs tab, click Add API and fill in the Create Custom API form.Template variables
Use{{variableName}} in the URL, headers, or body. IrisAgent fills them in before each call.
Built-in variables: {{ticketId}}, {{priority}}, {{status}}, {{subject}}, {{accountId}} (the account or company ID on the ticket).
Response schema
Click Add Field for each response value you want to use. Set the Field name (the JSON key, e.g.isPremium) and Field type (String, Boolean, Integer, or Float).
For {"isPremium": true, "tier": "enterprise"}, add isPremium (Boolean) and tier (String).
Expression
The expression evaluates the response. Reference fields asresponse.fieldName:
String, Boolean, Integer, or Float).
Prerequisite (optional): run another API first
Use this to feed one API’s result into another call. For example, HubSpot needs a contact’s record ID before you can link it to a ticket.
The injected value is the prerequisite API’s Expression result, so make that expression return the single value you need (for example, the new record’s
id). An API cannot be its own prerequisite.
Click Create API to save.
Step 4: Test your API
Testing is available after you save.- Click the edit icon next to your API.
- In the Test API Configuration section, enter sample values for each variable.
- Click Run Test.
Example: link a HubSpot contact to a new ticket
HubSpot only shows a contact on a ticket if the ticket is created with an association to the contact’s record ID. Chain two APIs to do this.API 1: Upsert HubSpot contact
Creates the contact or returns the existing one, and outputs its ID.{{email}} and {{name}} are custom variables collected from the customer.
API 2: Create HubSpot ticket
Association type ID
16 is HubSpot’s Ticket-to-Contact type:
{{contactId}}, and creates the ticket linked to it.
Use Custom APIs in workflows
In AI FAQ workflows (recommended)
See Using Custom APIs in plain-English workflows.As a case trigger condition
- Go to Automate → Case Triggers.
- Click Create New Trigger and add a condition.
- In the condition picker, select your API. It is listed as
API: <name>. - Enter the value to compare against (for example,
truefor a Boolean). - Save the trigger.