FlowsBook a callSign inCreate free accountSign up
AI employees and automation

An AI agent in Slack: ask it, change it and approve its work from a thread

How a team can question an AI employee, change what it does and approve what it sends without leaving Slack, and what still needs the app.

Part of the guide AI employees

By the xMap team · · 5 min read

An AI agent in Slack is most useful when the conversation about its work happens where the work is posted. In xMap Flows an AI employee can post its findings to a channel, answer a question asked in the thread under them, take a change in plain words (shown to you with Confirm before anything is saved), and wait in the channel for someone to approve what it is about to send. Nobody has to open another tool to steer it.

This article is for teams that live in Slack: sales, operations, customer success, field teams. It walks through the four ways an AI employee and your channel talk to each other, a worked example, and the rules that keep it safe.

Four things it can do in your channel

  • Post what it found. One message a run with the flow's name, the count and a linked list, the full results attached as a spreadsheet, or one message per item.
  • Answer questions in its thread. Link an AI employee's Team inbox thread to a channel and its daily notes go there too. A reply such as why fewer this week? is answered from its runs and results.
  • Take a change in words. A reply in the thread of a flow's list, such as only places rated 4 or more or send this on Fridays instead, goes to Ask xMap, which says what it would change. Nothing is saved until someone presses Confirm.
  • Ask before sending. An Approval block can post its request in Slack as well as by email, and the people asked answer there. The run carries on or stops at once.

Slack can also start a flow. The Slack New message event runs a flow when someone writes in a channel it listens to, mentions xMap Flows, or sends it a direct message; an AI agent after it thinks and uses its tools, and Reply answers in the message's own thread.

A worked example (made up)

A beverage distributor in Sao Paulo has an AI employee that finds new bars and restaurants on its reps' routes every morning and posts them to #new-outlets. Here is a week in that channel.

  1. Monday, 07:00: the employee posts 14 new outlets, each linked to its map, with a score and one line of reason.
  2. Monday, 08:15: the sales manager replies in the thread, leave out places with fewer than 20 reviews. A minute later Ask xMap answers in the thread: it would add a Filter on reviews of 20 or more before the Slack step. She presses Confirm and the flow is saved.
  3. Tuesday: 9 outlets, all with 20 reviews or more. A rep asks in the thread, why is the bar on Rua Augusta scored so high?, and the employee answers from what it found: rating, distance from the route, and the reason xMap LLM wrote.
  4. Wednesday: a second flow that writes a first message to each new outlet posts its Approval in the channel. The manager reads the drafts and approves five of them.

The manager never opened the editor that week, and every change is still in the flow's version history and the organization's Activity.

Who can do what

  • Only people whose Slack email belongs to a member of your organization can confirm changes, and only if they may edit that flow. A change to a live flow needs the Deploy right, as in the app.
  • A change worded as thanks or chat does nothing. Only a reply that reads like an instruction goes to Ask xMap, and it costs what one message to Ask xMap costs.
  • If your organization requires company sign-on, two-step sign-in, an IP allow-list or sign-in rules, approvals and changes are answered in the app, where those rules apply.
  • A team Slack connection can be limited to the channels it may post in, and whether it may send direct messages.

Mistakes teams make

  • One channel for every employee. Twenty AI employees posting to #general is noise. Give each kind of work its own channel, or make a private one from the Channel list in one click.
  • Vague replies. Make it better gives Ask xMap nothing to work with. Say what to keep, drop or change: only independents in Pinheiros and Vila Madalena.
  • Confirming without reading. The proposed change is written out in words. Read it; it is the last check before the flow changes.
  • Expecting it to read the whole workspace. It reads only the channels and direct messages a live flow listens to, and only to start that flow.

How to set it up

  1. Connect Slack under Data, Connections, with Sign in with Slack.
  2. In the flow, add the Slack step and pick the channel. Leave the message empty for the ready-made one, or write your own with the list field.
  3. In the AI employee's Team inbox thread, link the same channel so its daily notes and answers go there.
  4. Add an Approval with Also ask on set to Slack wherever the flow writes to people outside your company.
  5. Press Run once to see the first message in the channel.

The daily hiring signals in Slack template posts to a channel from the start, new businesses routed by size sends key accounts to Slack and the rest to a sheet, and meeting prep chat for reps is an agent your reps can question. For the wider picture of automated work, see the workflow automation guide.

Questions

Can it change a flow without anyone confirming?

No. A change asked for in a Slack thread is shown in words first and only saved when a member who may edit the flow presses Confirm.

Does it read every message in our workspace?

No. It reads new messages only in the channels and direct messages a live flow listens to, and only to start that flow. Messages are not stored beyond the run they start.

Can our reps ask it questions in Slack?

Yes. In an AI employee's thread they can ask about what it found, and a flow started by a Slack message can answer any question its agent has tools for.

Can it post to a private channel?

Yes, to private channels it has been added to. The Channel list also offers Create a private channel, which makes one with xMap Flows already in it.

Templates that do this

Read next

More on ai employees and automation · Every article · Templates

Put it to work

An AI employee in xMap Flows does this on live data, on its own timetable. Start from a template or describe it in plain words.