Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Build a Slackbot

A step-by-step tutorial for building a Slackbot using Cloudflare Workers, Hono, and TypeScript that integrates GitHub webhooks for issue notifications and slash commands for issue lookups.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Build a Slackbot

A step-by-step tutorial for building a Slackbot using Cloudflare Workers, Hono, and TypeScript that integrates GitHub webhooks for issue notifications and slash commands for issue lookups.

When To Use

Use when you need to implement a Slackbot that automates GitHub issue notifications via webhooks and provides interactive issue lookups via slash commands using Cloudflare Workers.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-build-a-slackbot-workflow-guide.mdA step-by-step tutorial for building a Slackbot using Cloudflare Workers, Hono, and TypeScript that responds to GitHub webhooks.Questions about a step-by-step tutorial for building a Slackbot using Cloudflare Workers, Hono, and TypeScript that responds to GitHu...
examples/workers-build-a-slackbot-cloudflare-workers-slackbot-setup-command.textThe npm command used to initialize a new Slackbot project using the Cloudflare Workers starter template.Exact payloads, commands, or snippets shown in The npm command used to initialize a new Slackbot project using the Cloudflare Workers starter template.
examples/workers-build-a-slackbot-cloudflare-workers-slackbot-project-initializat.textThe shell command used to scaffold a new Slackbot project using the Cloudflare Workers create command.Exact payloads, commands, or snippets shown in The shell command used to scaffold a new Slackbot project using the Cloudflare Workers create command.
examples/workers-build-a-slackbot-pnpm-create-command.textThe pnpm command used to initialize a new Slackbot project using the Cloudflare Workers create template.Exact payloads, commands, or snippets shown in The pnpm command used to initialize a new Slackbot project using the Cloudflare Workers create template.
examples/workers-build-a-slackbot-cli-setup-commands.textTerminal commands for creating the slack-bot directory and navigating into it.Exact payloads, commands, or snippets shown in Terminal commands for creating the slack-bot directory and navigating into it.
examples/workers-build-a-slackbot-cloudflare-workers-slackbot-hono-app-implementa.textA TypeScript implementation of a Slackbot using the Hono web framework for Cloudflare Workers.Exact payloads, commands, or snippets shown in A TypeScript implementation of a Slackbot using the Hono web framework for Cloudflare Workers.
examples/workers-build-a-slackbot-cloudflare-workers-slackbot-dev-dependencies-in.textThe shell command to install development dependencies required for the Cloudflare Workers Slackbot tutorial.Exact payloads, commands, or snippets shown in The shell command to install development dependencies required for the Cloudflare Workers Slackbot tutorial.
examples/workers-build-a-slackbot-yarn-add-dev-command.textThe terminal command used to add development dependencies for the Slackbot project.Exact payloads, commands, or snippets shown in The terminal command used to add development dependencies for the Slackbot project.
examples/workers-build-a-slackbot-pnpm-install-command.textThe shell command used to install the necessary development dependencies for the Slackbot project using pnpm.Exact payloads, commands, or snippets shown in The shell command used to install the necessary development dependencies for the Slackbot project using pnpm.
examples/workers-build-a-slackbot-cloudflare-workers-slackbot-bun-install-command.textThe shell command used to add development dependencies to the project using the Bun package manager.Exact payloads, commands, or snippets shown in The shell command used to add development dependencies to the project using the Bun package manager.
examples/workers-build-a-slackbot-cloudflare-workers-slackbot-hono-app-implementa-2.textA Hono-based JavaScript application implementation for a Cloudflare Workers Slackbot.Exact payloads, commands, or snippets shown in A Hono-based JavaScript application implementation for a Cloudflare Workers Slackbot.
examples/workers-build-a-slackbot-cloudflare-workers-slackbot-hono-app-implementa-3.textA Hono-based JavaScript application implementation for a Cloudflare Workers Slackbot.Exact payloads, commands, or snippets shown in A Hono-based JavaScript application implementation for a Cloudflare Workers Slackbot.
examples/workers-build-a-slackbot-project-structure-setup.textShell commands to create the directory structure and initial TypeScript files for the Slackbot project.Exact payloads, commands, or snippets shown in Shell commands to create the directory structure and initial TypeScript files for the Slackbot project.
examples/workers-build-a-slackbot-cloudflare-workers-slackbot-hono-app-entrypoint.textThe main entrypoint script for a Cloudflare Workers Slackbot using the Hono web framework.Exact payloads, commands, or snippets shown in The main entrypoint script for a Cloudflare Workers Slackbot using the Hono web framework.
examples/workers-build-a-slackbot-cloudflare-workers-slackbot-typescript-bindings.textTypeScript type definitions for the Slackbot project including Bindings and Issue interfaces.Exact payloads, commands, or snippets shown in TypeScript type definitions for the Slackbot project including Bindings and Issue interfaces.
examples/workers-build-a-slackbot-cloudflare-workers-slackbot-hono-app-implementa-4.textA Hono-based JavaScript application implementation for a Cloudflare Workers Slackbot.Exact payloads, commands, or snippets shown in A Hono-based JavaScript application implementation for a Cloudflare Workers Slackbot.
examples/workers-build-a-slackbot-cloudflare-workers-slackbot-slash-command-paylo.textA sample text payload representing a Slack slash command request sent to a Cloudflare Worker.Exact payloads, commands, or snippets shown in A sample text payload representing a Slack slash command request sent to a Cloudflare Worker.
examples/workers-build-a-slackbot-cloudflare-workers-slackbot-hono-app-implementa-5.textA Hono-based Cloudflare Worker application implementation designed to handle Slackbot interactions.Exact payloads, commands, or snippets shown in A Hono-based Cloudflare Worker application implementation designed to handle Slackbot interactions.
examples/workers-build-a-slackbot-github-issue-regex-parser.textA TypeScript function and regular expression used to parse GitHub issue strings within a Cloudflare Workers Slackbot tutorial.Exact payloads, commands, or snippets shown in A TypeScript function and regular expression used to parse GitHub issue strings within a Cloudflare Workers Slackbot...
examples/workers-build-a-slackbot-cloudflare-workers-slackbot-hono-app-implementa-6.textA Hono-based Cloudflare Worker application implementation that parses Slack messages to interact with GitHub issues.Exact payloads, commands, or snippets shown in A Hono-based Cloudflare Worker application implementation that parses Slack messages to interact with GitHub issues.
examples/workers-build-a-slackbot-cloudflare-workers-slackbot-github-issue-parser.textA TypeScript implementation of a regex-based GitHub issue parser and a function to fetch issue details from the GitHub API.Exact payloads, commands, or snippets shown in A TypeScript implementation of a regex-based GitHub issue parser and a function to fetch issue details from the GitHu...
examples/workers-build-a-slackbot-cloudflare-workers-slackbot-hono-app-implementa-7.textA Hono-based Cloudflare Worker application implementation that parses Slack messages to fetch GitHub issue details.Exact payloads, commands, or snippets shown in A Hono-based Cloudflare Worker application implementation that parses Slack messages to fetch GitHub issue details.
examples/workers-build-a-slackbot-github-issue-message-constructor.textA TypeScript function that formats GitHub issue data into a Slack-compatible message string.Exact payloads, commands, or snippets shown in A TypeScript function that formats GitHub issue data into a Slack-compatible message string.
examples/workers-build-a-slackbot-cloudflare-workers-slackbot-github-issue-messag.textA TypeScript function that formats GitHub issue data into a Slack message string using markdown links.Exact payloads, commands, or snippets shown in A TypeScript function that formats GitHub issue data into a Slack message string using markdown links.
examples/workers-build-a-slackbot-cloudflare-workers-slackbot-hono-implementation.textA Hono-based Cloudflare Workers implementation that parses GitHub issue strings and constructs Slack messages.Exact payloads, commands, or snippets shown in A Hono-based Cloudflare Workers implementation that parses GitHub issue strings and constructs Slack messages.
examples/workers-build-a-slackbot-cloudflare-workers-slackbot-hono-implementation-2.textA Hono-based Cloudflare Worker implementation that parses GitHub issue strings and constructs Slack messages.Exact payloads, commands, or snippets shown in A Hono-based Cloudflare Worker implementation that parses GitHub issue strings and constructs Slack messages.
examples/workers-build-a-slackbot-cloudflare-workers-slackbot-hono-app-implementa-8.textA Hono-based JavaScript application implementation for a Cloudflare Workers Slackbot.Exact payloads, commands, or snippets shown in A Hono-based JavaScript application implementation for a Cloudflare Workers Slackbot.
examples/workers-build-a-slackbot-cloudflare-workers-slackbot-hono-app-logic.textA Hono application implementation for handling Slackbot interactions within a Cloudflare Worker.Exact payloads, commands, or snippets shown in A Hono application implementation for handling Slackbot interactions within a Cloudflare Worker.
examples/workers-build-a-slackbot-cloudflare-workers-slackbot-hono-app-logic-2.textA Hono application implementation for a Cloudflare Worker that processes Slackbot interactions and constructs GitHub issue messages.Exact payloads, commands, or snippets shown in A Hono application implementation for a Cloudflare Worker that processes Slackbot interactions and constructs GitHub...
examples/workers-build-a-slackbot-cloudflare-workers-slackbot-github-issue-messag-2.textA TypeScript function that formats GitHub issue data into a Slack-compatible message string using Markdown links.Exact payloads, commands, or snippets shown in A TypeScript function that formats GitHub issue data into a Slack-compatible message string using Markdown links.
examples/workers-build-a-slackbot-cloudflare-workers-slackbot-hono-implementation-3.textA Hono-based Cloudflare Workers implementation that processes Slack incoming webhooks to format GitHub issue notifications.Exact payloads, commands, or snippets shown in A Hono-based Cloudflare Workers implementation that processes Slack incoming webhooks to format GitHub issue notifica...
examples/workers-build-a-slackbot-wrangler-secret-command.textA command line instruction for setting the SLACK_WEBHOOK_URL secret using Wrangler.Exact payloads, commands, or snippets shown in A command line instruction for setting the SLACKWEBHOOKURL secret using Wrangler.
examples/workers-build-a-slackbot-cloudflare-workers-slackbot-tutorial-secret-val.textA text representation of the secret value input prompt used during the Slackbot tutorial setup.Exact payloads, commands, or snippets shown in A text representation of the secret value input prompt used during the Slackbot tutorial setup.
examples/workers-build-a-slackbot-cloudflare-workers-slackbot-hono-app-implementa-9.textA Hono-based Cloudflare Worker application implementation that processes Slackbot interactions and constructs GitHub issue messages.Exact payloads, commands, or snippets shown in A Hono-based Cloudflare Worker application implementation that processes Slackbot interactions and constructs GitHub...
examples/workers-build-a-slackbot-deploy-command.textThe npm install and deploy command used to initialize and deploy the Slackbot project.Exact payloads, commands, or snippets shown in The npm install and deploy command used to initialize and deploy the Slackbot project.
examples/workers-build-a-slackbot-yarn-add-deploy-command.textThe terminal command used to add the deploy package via yarn for the Slackbot tutorial.Exact payloads, commands, or snippets shown in The terminal command used to add the deploy package via yarn for the Slackbot tutorial.
examples/workers-build-a-slackbot-cloudflare-workers-slackbot-pnpm-deploy-command.textThe pnpm command used to add the deploy dependency for the Slackbot tutorial.Exact payloads, commands, or snippets shown in The pnpm command used to add the deploy dependency for the Slackbot tutorial.
examples/workers-build-a-slackbot-cloudflare-workers-slackbot-tutorial-bun-instal.textThe shell command used to add the deploy package via the Bun package manager for the Slackbot tutorial.Exact payloads, commands, or snippets shown in The shell command used to add the deploy package via the Bun package manager for the Slackbot tutorial.

What This Skill Covers

  • In this tutorial, you will build a Slack ↗ bot using Cloudflare Workers. Your bot will make use of GitHub webhooks to send messages to a Slack channel when i...
  • Main sections: Tags, Before you start, Set up Slack, Configure a Slack application, Incoming Webhook.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.cloudflare.com/workers/tutorials/build-a-slackbot