IT Help
#it-help: "I need access to the finance dashboard"
Slack · Asked by Tom Reyes · 14:05
- Channel
- Slack, through a Tray workflow
- Agent
- IT access agent
- Tool waiting
- grantAccess, needs approval
- Reply
- Posted in thread: "Request sent to the dashboard owner."
Agent run
- 14:05 Workflow received the Slack message and called the agent route Tray workflow
- 14:05 Looked up the dashboard owner Agent
- 14:06 Paused: grantAccess needs approval Agent
- 14:06 Replied in the Slack thread Tray workflow
What matters here
- A Tray Helix agent can work in Slack and Microsoft Teams through their APIs from the app, or through a Tray workflow.
- The Slack and Teams credentials are held by Tray, so they never sit in the agent's code.
- The agent in chat is the same agent as in the app, with the same tools, approval and run log.
- Approval still applies in chat: a write pauses the run and an approver sees the tool and exact input.
- A Tray workflow is the simplest way in: it listens for the message, calls the agent's route with a Helix API token, and posts the reply.
Who this is for
You have built, or are about to build, an agent in Tray Helix, and the people who need it live in Slack or Teams. You want them to ask there without a second copy of the agent.
How it works in practice
A question in a channel, the same agent, and a reply in the thread.
- 1
Someone asks in a channel
They mention the agent in Slack or Teams, or message it directly.
- 2
The message reaches the agent
A Tray workflow triggered by the message calls the agent's API route with a Helix API token, or the app reads it through the Slack or Teams API.
- 3
The agent works as usual
Same tools, same limits. Reads run on their own.
- 4
Writes wait for approval
A tool marked for approval pauses the run, and the approver gets the tool and exact input.
- 5
The reply lands in the thread
The workflow or the app posts the answer back where the question was asked.
What a chat agent is made of
The agent you already have, an API route, and a way in from chat.
An agent in a Helix app
With its tools, approvals and limits, exactly as it runs in the app.
An API route
A route on the app that takes a message and a conversation ID and returns the agent's reply. Called with a Helix API token.
A way in from chat
A Tray workflow triggered by Slack or Teams messages, or the app calling the Slack and Teams APIs itself.
Threads as conversations
Each Slack or Teams thread maps to one agent conversation, so follow-ups keep their context.
The prompts
Paste these into Claude Code, Codex or Cursor in order. Each one leaves you with something that runs, so you can stop after any step.
These prompts start from a Helix project, which is what handles sign-in, credentials and hosting. Start with Helix.
Give the agent an API route
One way in for every channel.
In my Helix app, add an API route for the agent.
It takes a message, a conversation ID and who is asking, runs the agent, and returns the reply. If the agent pauses for approval, return that it is waiting and what for.
Map each conversation ID to one agent conversation, so a follow-up in the same thread keeps its context. Keep conversations separate per user.
Post approvals and replies back to chat
The thread stays the place people look.
When a run pauses for approval, post the request to the approvers' channel with the tool, the exact input and a link to approve in the app.
When the run finishes, post the reply in the thread the question came from.
Use the Slack API for Slack and the Microsoft Teams API for Teams, with credentials held in the workspace, never in code.
Connect the chat tools
Slack and Teams, or a workflow in between.
Now connect it to the chat tools we actually run.
Anything in angle brackets is a placeholder. Swap it for whatever we use.
<Slack>. Post replies in threads and approval notices in the approvers' channel.
<Microsoft Teams>. The same, in Teams.
Incoming messages come from a Tray workflow that triggers on a mention or direct message and calls this app's agent route with a Helix API token.
Ship it
A URL, and the channels on it.
Deploy my app.
What it connects to
Two chat tools, one agent.
-
Slack Receive mentions and direct messages, and post replies in the thread. Reads and writes
-
Microsoft Teams The same, in Teams channels and chats. Reads and writes
Named systems are the ones most teams actually run, not a list of the only ones that work. Swap in whatever you use.
Running it for real
The build gets you an agent in chat. Running it means a token you can revoke, credentials out of the code, and one log for every channel.
- 1
One agent, deployed once
The agent ships with its app. Chat calls the same deployment, so you can roll back any deployment and every channel follows.
- 2
A named token for each caller
The workflow calls the agent with a Helix API token: a named API user that you can revoke, with every call logged.
- 3
Chat credentials held by Tray
The Slack and Teams credentials are held in Tray, not in the code, so they can be rotated without a redeploy.
- 4
A named owner and every step logged
Every run is logged under the message that started it, whatever channel it came from, and Tray streams the logs to your SIEM.
- 5
Know what chat costs
AI usage shows per app, so the agent's cost covers every channel in one place.