Build a Zap on Zapier that checks each new request posted in a Slack channel with AI by Zapier and, when a request that needs a link doesn't have one (an event promo with no sign-up page, for example), adds a reaction and asks the requester for the link in the thread. Use when a team takes requests in Slack and keeps chasing people for missing links before work can start.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Flag Slack Requests Missing A Link With Ai?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/zapier-flag-slack-requests-missing-a-link-with-ai)
---
name: flag-slack-requests-missing-a-link-with-ai
description: Build a Zap on Zapier that checks each new request posted in a Slack channel with AI by Zapier and, when a request that needs a link doesn't have one (an event promo with no sign-up page, for example), adds a reaction and asks the requester for the link in the thread. Use when a team takes requests in Slack and keeps chasing people for missing links before work can start.
license: MIT
metadata:
author: zapier
summary: "When a request lands in your Slack channel without the link it needs, like an event promo with no sign-up page, the Zap reacts to it and asks the requester for the link in the thread."
apps: "Slack, AI by Zapier"
category: "Marketing"
job: "Team communication"
---
# Flag Slack requests missing a link with AI
The Zap's code lives at https://github.com/zapier/awesome-zaps/tree/main/zaps/flag-slack-requests-missing-a-link-with-ai. Read the files there if this skill was installed on its own.
## What it does
1. **Trigger:** a new message is posted to the requests channel (`slack`, `channel_message`). Posts from bots count, since requests often come in through a form or another Zap.
2. **Workflow** skips replies inside a thread and empty messages, so follow-ups and the Zap's own replies don't start it again. It pulls the links out of the message.
3. **AI by Zapier** (`ai`) decides whether the request is the kind that needs a link (`NEEDS_A_LINK`) and whether it already has a usable one (`USABLE_LINK`). When a link is missing, it writes a short ask for it.
4. **Slack** adds the `FLAG_EMOJI` reaction to the request with Slack's `reactions.add`.
5. **Slack** replies in the request's thread as `BOT_NAME`, tagging the person who posted it. When a bot posted the request, it tags the first person the message mentions, or no one.
Requests that don't need a link, or already have one, get no reaction and no reply. The Zap never edits or deletes messages.
## Ask the user
Each `REPLACE_…` value is set per person. Resolve names to IDs with the user's own connections; don't ask them to paste an ID you can look up.
| Setting | Where | What goes there |
| ------------------ | ----------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| `SLACK_CHANNEL_ID` | `config.ts`, and `channel` in `triggers/channel-message.ts` | The channel requests are posted in: look up its ID (C…) with the user's Slack connection |
Use the same channel ID in both places, or the reactions and replies will go to a different channel than the one the trigger watches.
Then show the user the defaults in `config.ts` and change any they want. `NEEDS_A_LINK` says which requests need a link (event, webinar and live session promos by default) and `USABLE_LINK` says what counts as one. If their team tracks links with UTM parameters, add that to `USABLE_LINK`.
## Build it
Build with Zapier MCP. If the user wants the Zap kept in their project, copy this folder into `zaps/` there first, then deploy those files. No Zapier MCP tools? Read https://docs.zapier.com/mcp/get-started/quickstart.md and follow the page for the app you are running in to get the user connected, then continue with this build.
1. **Accounts:** bind `slack` to the user's Slack connection for the workspace with the requests channel. `ai` runs on AI by Zapier's managed credentials and needs no connection of its own.
2. **Source:** publish `workflow.ts` and `config.ts`, with each `REPLACE_…` replaced by the user's answer. `triggers/channel-message.ts` and `connections/` are settings, not code: set the workflow's trigger and connection bindings from them. The trigger file names the app by its slug; for the trigger's `selected_api`, call `search_triggers` with that slug, find the row whose `key` is the trigger's `event`, and use `<app_key>@<app_version>` from it.
3. **Build guide:** load Zapier's build guide with `get_zapier_skill("zapier:build-workflows")` and follow it to create, test and publish the workflow.
4. **Fields:** inspect the Slack `channel_message` trigger's output and action, and the AI by Zapier `get_completion` outputs, with the user's connections before the first test run. Confirm the trigger's payload has `ts`, `thread_ts`, `text`, `bot_id` and `user.id`, and fix any key in `workflow.ts` that doesn't match.
## Test it
Run this sample as a draft test (`run_workflow_draft` in Zapier MCP) in a test channel the user owns, with `SLACK_CHANNEL_ID` set to that channel. Post a message there first, labelled `[install-test]`, such as "[install-test] Can we promote our Jan 14 webinar on LinkedIn next week?", then replace the sample `ts` with that message's timestamp and `user.id` with the user's own Slack ID:
```json
{
"ts": "1700000000.000300",
"text": "[install-test] Can we promote our Jan 14 webinar on LinkedIn next week?",
"user": { "id": "U0123456789" }
}
```
Confirm that the test message gets the reaction and a thread reply that tags the user and asks for the sign-up link. Then run it again on a second test message that includes a link, such as "[install-test] Promote our Jan 14 webinar: <https://example.com/webinar>", and confirm the run ends with `"flagged": false` and nothing is posted. The user deletes the test messages, not the agent.
## Notes
- Every top-level message in the channel is checked, which is one AI by Zapier call each. In a busy channel, add a filter in the Zapier editor so only request posts start it, such as posts from your form's bot.
- The AI judges links by their text and address. It doesn't open them, so a broken link that looks right passes.
- To flag something besides links, like a missing due date or asset, rewrite `NEEDS_A_LINK` and `USABLE_LINK` in `config.ts` to describe it.