Skip to content

docs: document Slack integration custom message format#2504

Open
marcel-rbro wants to merge 2 commits into
masterfrom
docs/slack-message-template
Open

docs: document Slack integration custom message format#2504
marcel-rbro wants to merge 2 commits into
masterfrom
docs/slack-message-template

Conversation

@marcel-rbro
Copy link
Copy Markdown
Contributor

@marcel-rbro marcel-rbro commented May 6, 2026

Summary

Closes #2490 by documenting the Slack integration's custom message template format and the full list of template variables. Also tightens existing prose on the page.

New reference content

  • ## Custom message format — Handlebars template engine, Slack mrkdwn syntax, 2–4000 char length limit, auto-appended Sent by Apify line, TEST event behavior, and empty-template fallback.
  • ## Template variables with sub-sections:
    • ### Event dataactorId, actorTaskId, actorRunId, actorBuildId
    • ### Resource (Actor run) — full table of frequently used resource.* fields (id, status, statusMessage, startedAt, finishedAt, defaultDatasetId, options., stats., meta.origin, etc.)
    • ### Resource (Actor build) — build-specific resource fields
    • ### Status values — split list for runs vs builds
    • :::tip Full resource object admonition pointing to the Get run / Get build API responses
  • ## Message template examples — four ready-to-paste templates: minimal status notification, run summary with Apify Console links, failure alert with {{#if}} conditionals, and build notification.
  • Cross-link from Step 1 to the new Custom message format section so the existing setup flow points readers at the new reference.

Page cleanup (existing content)

  • Intro tightened — removed the lead paragraph that duplicated the frontmatter description verbatim, collapsed two separate tutorial pointers (one was a blockquote with an orphan --- rule above it) into one, and replaced the wordy value paragraph with a single value-forward sentence.
  • Image alt text — replaced generic alt text on all three screenshots (Integrations tab, Integration setup, Use Apify from Slack) with descriptive text.
  • Step 1 prose — switched to active voice ("Log in ... when prompted"), dropped wordy phrasings ("events you would like to be notified of", "Once you are done"), and restructured the long event-selection sentence.
  • Misc style — removed redundant "the" before [Google Shopping Scraper], replaced "feel free to reach out to us on our [Discord channel]" with "reach out on the [Apify Discord channel]".

Variable accuracy

Variables and their structure are grounded in the integration's source code (slack_webhook_handler.ts and webhooks.ts schema). Status values match what's exposed by the integration handler.

Test plan

  • pnpm lint:md passes
  • vale --minAlertLevel=error passes
  • Front matter description within 140-160 chars (147)
  • On the deploy preview, verify the #status-values anchor link works and the Apify Console URL patterns in the example templates resolve

Closes #2490

🤖 Generated with Claude Code

Adds reference for the Handlebars template engine used by the Slack
integration, the full list of template variables (eventData and
resource fields, run and build), status enum values, and four
ready-to-paste message examples.

Also tightens the page intro: the lead paragraph duplicated the
frontmatter description verbatim, the same tutorial link appeared
twice (once in a blockquote with an orphan horizontal rule), and the
value paragraph was wordy. Replaces with a single value-forward intro
plus the tutorial pointer, and fixes a few existing style nits caught
while reviewing (image alt text, "feel free", redundant "the" before
an Actor name).

Closes #2490

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added the t-docs Issues owned by technical writing team. label May 6, 2026
@marcel-rbro marcel-rbro requested review from MQ37 and TC-MO May 6, 2026 15:47
Pre-existing style nits caught during PR review:
- Active voice: "Log in ... when prompted" instead of "you will be prompted"
- Drop wordy "events you would like to be notified of" and the "Once
  you are done" conditional opener
- Restructure the long event-selection sentence into shorter clauses

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@TC-MO TC-MO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few things to change but most not connected to PR itself - good opportunity for cleanup

[Slack](https://slack.com/) allows you to install various services in your workspace in order to automate and centralize jobs. Apify is one of these services, and it allows you to run your Apify Actors, get notified about their run statuses, and receive your results, all without opening your browser.
For a step-by-step walkthrough, see the [Apify integration for Slack tutorial](https://help.apify.com/en/articles/6454058-apify-integration-for-slack).

<ThirdPartyDisclaimer />
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this truly a third party? Similar case as with GitHub integration

![Use Apify from Slack](../images/slack-apify-message.png)
![Slack message field showing the /apify call command with an Actor or task ID](../images/slack-apify-message.png)

When an Actor doesn't require you to fill in any input fields, you can run it by simply typing `/apify call [Actor or task ID]`.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's use this opportunity to nuke simply

@@ -1,3 +1,3 @@
---
title: Slack integration
description: Learn how to integrate your Apify Actors with Slack. This article guides you from installation through to automating your whole workflow in Slack.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: Learn how to integrate your Apify Actors with Slack, from installation through setting up notifications and running Actors directly from Slack.


## Get started

To use the Apify integration for Slack, you will need:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To use the Apify integration for Slack, you need:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-docs Issues owned by technical writing team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document Slack integration custom message format and template variables

4 participants