
Connectors / Customer service · HTTP Connector
Automate eGain with Tray.ai
Update a case, create a task activity and create a customer in eGain. Connect eGain to the rest of your customer service stack with Tray.ai.
What can you do with eGain on Tray.ai?
eGain is a customer service platform built around a knowledge hub, with case management, customer records, live chat and AI answers for agents and self-service. Tray.ai connects to eGain through the HTTP Connector, so your workflows can call the eGain API alongside the rest of your stack.
- Create a customer when your CRM adds a new account, so agents see the same details.
- Create a case note when your order system logs a refund for that customer.
- Close a case when your field service system marks the repair job complete.
- Transfer activities to a queue when your CRM flags the customer as high priority.
- Connects through
- HTTP Connector
- Authentication
- OAuth 2.0
Set it up
Connect eGain to Tray.ai
Each step uses eGain's own API details, from its documentation.
Step 1
Sign in to eGain with OAuth 2.0
Set up an OAuth 2.0 authentication with the client ID and secret of an OAuth app you register with eGain. Sign in once and every step reads the token from there.
Step 2
Import a request from eGain's docs
Add an HTTP Client step and paste a cURL example from eGain's API docs. Tray.ai fills in the method, URL, headers, and query.
Step 3
Start with “Search cases”
It's one of 20 documented actions, under Cases. The response comes back as data the next step can map into your other apps.
Step 4
Hand it to an AI agent
Wrap “Get cases by ID” and “Update a case” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.
Workflows to build with eGain
Each one uses actions and events from eGain's own API documentation.
Escalate eGain cases to Jira for engineering
When
On a schedule
Then
- Search cases in eGain for the escalation queue
- Create an issue in Jira for each case
- Create a case note in eGain with the issue link
With Jira
Sync new Salesforce contacts to eGain customers
When
A contact is created in Salesforce
Then
- Search customers in eGain
- Create a customer in eGain if none is found
With Salesforce
Close eGain cases when the Jira fix ships
When
An issue is resolved in Jira
Then
- Create a case note in eGain with the fix details
- Close a case in eGain
With Jira
Apps you can build on eGain data
Internal tools your team can build with an AI assistant, each one using eGain calls from its API documentation.
Case escalation queue
Lists cases with their notes and lets a supervisor add a note or close the case.
Duplicate customer cleanup
Searches for duplicate customer records and lets an admin merge them.
Knowledge article review
Lists knowledge articles with related articles and lets agents rate each one.
Give your AI agents eGain tools
Build an MCP server on eGain in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works
- Search cases
- Search activities
- Search customers
- Create a case note
- List articles
- Get cases by ID
- Update a case
- Close a case
What the eGain API covers
5 resources and 20 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.
Cases
- Search cases
- Get cases by ID
- Update a case
- Close a case
Activities
- Search activities
- Create a task activity
- Send an email response
- Transfer activities to a queue
- Complete activities
Customers
- Search customers
- Create a customer
- Update a customer
- Merge customers
Notes
- Create a case note
- List case notes
- Delete case notes
Knowledge articles
- List articles
- Get an article
- Rate an article
- List related articles
Checked against eGain's own documentation on 2026-10-25
How Tray.ai makes this work
eGain plugs into the whole Tray.ai platform
Intelligent Integration
Integrate and automate across 12,000+ apps, databases, APIs, and services with visual workflows, error handling, and observability.
Learn more →Agent Builder
Build AI agents that read, write, and take action in eGain — with guardrails, audit, and human-in-the-loop.
Learn more →Agent Gateway for MCP
Expose eGain actions as governed MCP tools — observable, rate-limited, authenticated.
Learn more →Tray Helix
Build apps on eGain data with your AI assistant, then deploy, run, and govern them on Tray.ai.
Learn more →More customer service apps on Tray.ai
Dedicated connectors and other apps Tray.ai reaches in the same category. See every customer service connector →
Frequently asked questions
What can a Tray.ai workflow do in eGain?
+
The eGain API documents 20 actions across 5 resources (Cases, Activities, Customers, Notes, Knowledge articles). For example: Search cases; Search activities; Search customers. A workflow can make any documented call through the HTTP Connector.
How does Tray.ai authenticate with eGain?
+
The eGain API uses OAuth 2.0. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.
See eGain working against your stack.
We'll walk through a tailored demo with your systems plugged in.
Thanks — someone from our team will be in touch soon.