Skip to content
Marvex

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.

AuthA Slack app supplying a bot token, a signing secret, an app ID and the bot user ID. Every inbound request is verified before it is processed: Marvex recomputes an HMAC-SHA256 signature over the versioned base string of timestamp and raw body using the signing secret, and compares it in constant time. Outbound calls use the bot token against the Slack Web API. Both credentials are held per organisation and stored encrypted at rest.
Colleagues talking in a bright office with laptops open on a table

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?

Velo answers questions about your delivery data — DORA metrics, pull requests and cycle time, team activity, Jira or SALT issues and sprints, and incidents. It classifies the intent of the message, resolves which Marvex user is asking, fetches only the data that person’s role permits, and replies as formatted Slack blocks. It is the same assistant available on the web and on WhatsApp, sharing one data layer, so the same question returns the same answer wherever it is asked.

How does Marvex verify that a Slack request is genuine?

It recomputes an HMAC-SHA256 signature over the versioned base string built from Slack’s request timestamp and the raw request body, keyed with the Slack app’s signing secret, and compares it against the signature header in constant time. Requests that fail verification are rejected before any handler processes them. Slack’s URL verification challenge, which carries no user event, is handled as its own explicit case when the request URL is first configured.

How does Velo know who is asking in Slack?

It resolves the Slack user to a Marvex user through email. The adapter calls users.info to read the email address on the Slack profile and matches it to a user in the Marvex organisation the Slack app is connected to. This is a security control rather than a convenience: what an answer may contain depends on the asker’s role and organisation, so if the identity cannot be resolved the correct behaviour is to decline rather than to fall back to unscoped data.

What Slack permissions does the integration need?

A Slack app with a bot token that can read message events in the conversations Velo should respond in, read user profile information via users.info and users.lookupByEmail, open direct message channels via conversations.open, and post messages via chat.postMessage. Marvex also stores the app’s signing secret, which it uses to verify inbound requests, plus the app ID and bot user ID so the adapter can recognise and ignore its own messages.

Does the Slack integration send notifications as well as answering questions?

Yes. Marvex sends pull request notifications to individuals as direct messages, finding the Slack user by email and opening a DM channel to deliver them — which is more reliable than posting to a shared channel somebody has to be watching. SALT, the built-in issue tracker, can also route issue and sprint notifications to Slack, so teams using it get the same Slack presence they would get from an external tracker without configuring a second integration.

Are Slack answers formatted, or is it a wall of text?

Formatted. Velo’s responses are converted from markdown into Slack’s mrkdwn conventions and emitted as Block Kit blocks, with a plain-text fallback attached so the message is still readable in contexts that do not render blocks. Answers are posted either to the channel the question came from or as a direct message, depending on how the conversation started.

Marvex

Connect Slack to Marvex

Authorise the Slack integration and Marvex builds your delivery views from the history already in it. Integration tokens are encrypted at rest and scoped to your organisation.