Slack AI Assistant Agent
Listen for new Slack messages and respond with an AI agent that can chat, send messages, manage users, set reminders, and handle Gmail tasks.
This workflow turns a Slack channel into a smart command center. It listens for new messages, processes them through an AI agent, and responds directly in the thread — whether the message is casual conversation or a specific task request.
The AI agent has access to a range of Slack and Gmail tools, so it can send messages, look up users, set reminders, draft emails, and more — all from a single Slack channel.
What It Does
- Triggers on any new message posted in a designated Slack channel.
- Sends the message content to an AI agent for interpretation and action.
- Merges the original Slack message data with the AI output to preserve context (like the thread timestamp).
- Posts the AI's response back into the Slack channel as a threaded reply.
What You Need
- A Slack account with access to the target channel
- Slack API credentials connected via Pipedream
- A Needle AI account or API access
- Gmail account connected via Pipedream (optional, for email-related actions)
How the Flow Works
| Node | Description |
|---|---|
| Slack — New Message in Channels | Watches for any new messages in a specified Slack channel to trigger the workflow. |
| AI Agent (Slack & Gmail Assistant) | Processes the message text using an AI model equipped with Slack and Gmail tools. It can chat casually or execute tasks depending on the request. |
| Merge Node | Combines the original Slack message data and the AI-generated output into a single item for the next step. |
| Slack — Send Message | Sends the AI's response back into the Slack channel as a threaded reply using the original message timestamp. |
Available AI Agent Tools
The AI agent has access to the following tools:
- Slack: Send message, send message to user/group, find message, list messages, list replies, list users, find user by email, list channel members, invite user to channel, update group members, update profile, set channel topic, create reminder, search internet
- Gmail: Send email, find email, create draft, delete email
Output
At the end of this workflow, a context-aware response is posted back to the Slack channel thread. For casual messages, the agent replies naturally. For task requests, it executes the action using its tools and returns a brief summary of what it did.
Notes
- The AI agent always looks up user IDs and emails via API calls — it never guesses identifiers.
- If a request falls outside the agent's configured tools, it politely lets the user know.
- Sensitive actions (like deleting emails or messaging large groups) require confirmation thanks to the agent's built-in safeguards.
- Customize the Slack channel ID in the trigger node to match your workspace setup.
- You can adjust the AI agent's prompt and temperature to change its personality or strictness.
Want to showcase your own workflows?
Become a Needle workflow partner and turn your expertise into recurring revenue.
