AI & messaging
Slack Integration
Delivery data answered where the conversation already happens. Velo receives Slack messages, resolves who is asking, fetches only what that person may see, and replies in formatted Block Kit rather than a wall of markdown.
Marvex connects to Slack so the Velo AI assistant can answer questions about DORA metrics, pull requests, teams, Jira and incidents directly in Slack, resolving the asking Slack user to a Marvex identity before any data is fetched.
Data Marvex reads
What we pull from Slack
- Inbound message events from the Slack Events API, carrying the sender’s Slack user ID, the message text and the channel ID
- The URL verification challenge Slack sends when a request URL is first configured
- User profile lookups via users.info, used to obtain the email address that maps a Slack user to a Marvex user
- Email-to-user lookups via users.lookupByEmail, for the reverse direction when Marvex initiates a message
- Direct message channel opening via conversations.open, so a reply can be delivered privately
- An auth.test call used to verify the configured bot token when the integration is saved
Once connected
What it unlocks
- Velo answering DORA, pull request, team, Jira and incident questions inside Slack
- Answers rendered as Block Kit blocks with a plain-text fallback, rather than raw markdown
- Identity resolution from Slack user to Marvex user, so role-based scoping applies to every answer
- Pull request notifications delivered as a direct message to the right person
- SALT notifications routed to Slack for issue and sprint activity
- One assistant across web, Slack and WhatsApp, answering from the same delivery data
How a question becomes an answer
Slack delivers a message event to Marvex. The adapter first discards what should never be answered: anything that is not a message, anything carrying a subtype or a bot identity, anything posted by Velo itself, and anything with empty text. That filtering is what stops an assistant replying to its own output, which is a more common failure than it should be.
What survives is reduced to three things — the Slack user ID, the message text and the channel — and handed to the assistant. Velo classifies the intent, resolves who is asking, fetches the delivery data that question needs, and generates a reply.
The reply is formatted for Slack rather than dumped into it. Markdown is converted to Slack’s mrkdwn conventions and the response is emitted as Block Kit blocks with a plain-text fallback, so it reads as a message rather than as a pasted document. Replies can be posted to the originating channel or opened as a direct message.
- Non-message, bot, subtype and self-authored events are dropped before processing
- Intent classification, then identity resolution, then data fetch
- Markdown converted to Slack mrkdwn; response emitted as Block Kit blocks
- Plain-text fallback always accompanies the blocks
Identity resolution is a security control, not a convenience
A Slack user ID means nothing to a delivery analytics platform on its own. Before Velo can answer anything, it has to establish which Marvex user is asking, because the answer depends on it: what a team lead may see is not what an engineer may see, and both are scoped to one organisation.
Marvex resolves this through email. The adapter calls users.info to obtain the email address on the Slack profile, and matches it to a Marvex user in the organisation the Slack app is connected to. Where Marvex needs to initiate a message instead, it goes the other way — users.lookupByEmail to find the Slack user, then conversations.open to obtain a direct message channel.
If the resolution fails, the correct behaviour is to answer nothing rather than to answer generically. An assistant that falls back to unscoped data when it cannot identify the asker is a data exposure with a friendly interface, and role scoping that only applies when identification succeeds is not role scoping.
Request verification, and why the signing secret is not optional
A Slack request URL is a public HTTPS endpoint. Anything on the internet can post to it, so treating an inbound payload as trustworthy because it has the right shape is not a defensible position.
Marvex verifies every inbound request by recomputing an HMAC-SHA256 signature over the versioned base string built from Slack’s request timestamp and the raw request body, keyed with the app’s signing secret, and comparing it against the signature header in constant time. A request that does not verify is rejected before any handler sees it.
The URL verification challenge Slack issues when the request URL is first configured is handled separately and explicitly, which is the one case where a request legitimately carries no user event at all.
- HMAC-SHA256 over timestamp and raw body, keyed with the signing secret
- Constant-time comparison of the computed and supplied signature
- Unverified requests rejected before any handler runs
- URL verification challenge handled as its own explicit case
Notifications, not just questions
The Slack connection carries two directions of traffic. Questions come in and are answered, and Marvex also pushes messages out.
Pull request notifications go to a person as a direct message, which is what conversations.open and users.lookupByEmail exist for. A notification that requires somebody to be watching a shared channel is a notification that will be missed; a direct message about a pull request waiting on your review is one that will not.
SALT can also route notifications to Slack for issue and sprint activity, so a team using the built-in tracker gets the same presence in Slack that they would get from an external tool, without an additional integration to configure.
The same assistant, three surfaces
Velo is one assistant with channel adapters, not three separate bots that happen to share a name. The intent classification, the data access layer and the response generation are shared; Slack, WhatsApp and the web interface differ only in how a message arrives and how a reply is formatted.
That matters for consistency. The same question asked in Slack and on the web returns the same answer from the same data, scoped by the same role rules, because there is only one path underneath. It also means the security properties are shared rather than reimplemented per channel — a channel adapter can get its signature verification wrong, but it cannot accidentally widen what data an answer may include.
Frequently asked questions
What can Velo answer in Slack?
How does Marvex verify that a Slack request is genuine?
How does Velo know who is asking in Slack?
What Slack permissions does the integration need?
Does the Slack integration send notifications as well as answering questions?
Are Slack answers formatted, or is it a wall of text?
Other integrations
Marvex