Create a new customer support channel and invite owners
When another automation hands it a new customer, a Slack channel is created for them, the account owner and your support team are invited, and the channel ID is passed back.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/create-a-new-customer-support-channel-and-invite-owners/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Business Owners · Team communication
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/create-a-new-customer-support-channel-and-invite-owners
Set it up with the CLI
- Add it. Copies the folder into
zaps/create-a-new-customer-support-channel-and-invite-owners/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/create-a-new-customer-support-channel-and-invite-owners - Fill in the values in
config.ts, and in any other file the list marks. Replace each one as its comment and SKILL.md say. - Deploy it. Asks for any value still left, signs you in to Zapier if you aren't, then publishes it to your account.
npx zap-pack deploy create-a-new-customer-support-channel-and-invite-owners - Check it. Its recent runs, with status and errors.
npx zap-pack logs create-a-new-customer-support-channel-and-invite-owners
zaps/create-a-new-customer-support-channel-and-invite-owners/
- README.mdWhat it does, for people
- SKILL.mdHow an agent sets it up: what to ask you, and how to test it
- config.tsIts settings
- connections/slack.tsThe
slackaccount it uses - connections/sub-zap-by-zapier.tsThe
sub-zap-by-zapieraccount it uses - triggers/start-subzap.tsWhat starts it:
sub-zap-by-zapierstart_subzap - workflow.tsThe code; each
ctx.stepis a step in the Zap
Agents: add --yes to any command so it never prompts. When it needs an answer only the user can give, it stops and names the flag that supplies it.
SKILL.md
View MarkdownWhat it does
- Trigger: another Zap or workflow calls this one through
sub-zap-by-zapier(start_subzap), passingcustomer_reference,brief_titleandowner_slack_id. Set the trigger'sinput_listto those three keys so the input matches the code. - The channel name is built from
CHANNEL_PREFIX, the customer reference and the title, lowercased and stripped to the characters Slack allows (for examplecust-acme-42-onboarding). slackcreates the channel. If Slack says the name is taken, it tries-2,-3and so on, up toMAX_NAME_ATTEMPTS. Any other error stops the run.slackinvites the owner by Slack user ID. Ifowner_slack_idis empty, this step is skipped.slackinvites the support group inSUPPORT_USER_IDS. If the list is empty, this step is skipped.- The workflow returns
channel_id,channel_name, and whether the owner and support members were invited, so the calling automation can use the channel.
The run creates a real public channel in the Slack workspace, so test with a reference that is obviously a test.
Ask the user
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 |
|---|---|---|
SUPPORT_USER_IDS |
workflow.ts |
Slack user IDs (U…) of the support members to invite to every channel. Look them up by name or email with the user's slack connection. Leave it empty to skip that invite. |
Also review the defaults with them: CHANNEL_PREFIX ("cust") and MAX_NAME_ATTEMPTS (5).
- Which Slack workspace should create the channels? The answer decides the
slackaccount in Build it. - Should the channels be public? Slack's Create Channel action makes public channels; see Notes for private channels.
- Will calling automations send the owner as a Slack user ID? If they only have an email, add a Slack Find User by Email step to the calling Zap before it calls this one.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/create-a-new-customer-support-channel-and-invite-owners, replace each REPLACE_… value as this file says, then run npx zap-pack deploy create-a-new-customer-support-channel-and-invite-owners, which signs the user in to Zapier when it gets there. Otherwise build with Zapier MCP, as the steps below say. 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.
- Accounts: bind
slackto the user's Slack connection for the workspace where customer channels belong. That account creates the channel, so it must be allowed to create channels.sub-zap-by-zapierneeds no account: its trigger runs withauthentication_idset to null. - Source: publish
workflow.tsandconfig.ts, and setSUPPORT_USER_IDSinworkflow.tsfrom the user's answer.triggers/start-subzap.tsandconnections/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'sselected_api, callsearch_triggerswith that slug, find the row whosekeyis the trigger'sevent, and use<app_key>@<app_version>from it. - Build guide: load Zapier's build guide with
get_zapier_skill("zapier:build-workflows")and follow it to create, test and publish the workflow. - Fields: inspect each action's fields with the user's connections and sample the trigger before the first test run, and fix any key in
workflow.tsthat doesn't match.
Test it
Run this sample as a draft test run before publishing. Use the user's own Slack ID as the owner, or leave it empty. The run creates a real public channel, so keep the reference obviously a test:
{
"customer_reference": "TEST-001",
"brief_title": "Install test",
"owner_slack_id": ""
}
Check that:
- a channel named
cust-test-001-install-testnow exists, and the run output'schannel_idmatches it; - a second run with the same input creates
cust-test-001-install-test-2; - with an owner ID, the owner is a member; with
SUPPORT_USER_IDSset, those people are members.
If run-status tools aren't available, check the result in Slack directly. Ask the user to delete the test channels in Slack; the agent does not delete them. Then publish and confirm the trigger is active.
Notes
- Return value: a durable workflow has no "Return from Sub-Zap" step. Its return value (
channel_id,channel_name, …) is the run's output. Check that the calling Zap's "Call a Sub-Zap" step receives it before relying on it downstream. - Public or private: Slack's Create Channel action makes public channels and has no visibility option. For a private channel, replace that step with Slack's
conversations.createAPI call (is_private: true) through the Slack connection. - Invites: the connected Slack account creates the channel and is already a member. Slack rejects inviting yourself, so don't put that account's ID in
SUPPORT_USER_IDSor send it as the owner. One invalid ID fails that invite step, and with it the run, after the channel already exists. - Names: channel names are capped at 80 characters, so long titles are cut to leave room for a
-Nsuffix. Only a "name taken" error triggers the suffix retry. - Customize: after the invites, post a welcome message with an onboarding checklist to the new channel (Slack Send Channel Message), or set the topic from an onboarding milestone (Slack Set Channel Topic).
- Never commit real Slack user IDs or the trigger's webhook URL.