Send live chat inquiries to your bookings channel
When a visitor sends a live chat message, your bookings channel gets a short alert with who wrote, what they said and a link to the conversation, so coordinators can reply fast.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/send-live-chat-inquiries-to-your-bookings-channel/
Paste into Claude, ChatGPT, Cursor or any agent.
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/send-live-chat-inquiries-to-your-bookings-channel
Set it up with the CLI
- Add it. Copies the folder into
zaps/send-live-chat-inquiries-to-your-bookings-channel/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/send-live-chat-inquiries-to-your-bookings-channel - 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 send-live-chat-inquiries-to-your-bookings-channel - Check it. Its recent runs, with status and errors.
npx zap-pack logs send-live-chat-inquiries-to-your-bookings-channel
zaps/send-live-chat-inquiries-to-your-bookings-channel/
- 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 1 to fill in
- connections/slack.tsThe
slackaccount it uses - triggers/hook.tsWhat starts it:
webhookhook_v2 - 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: a chat tool posts each new message to a Webhooks by Zapier catch hook (
webhook,hook_v2). - Filter: if the payload's
sender_typeis notexternal, the run stops there. Internal and system messages never post. - Slack posts a message to the bookings channel. The bot name and icon are set in the code. The text has the sender's email in bold, a preview of the message (cut at 280 characters), and an "Open conversation" link to the chat.
Nothing is sent back to the chat or the visitor; coordinators reply in the chat tool themselves.
Ask the user
Each REPLACE_… value is set per person. Resolve names to IDs with the user's Slack connection; don't ask them to paste an ID you can look up.
| Setting | What goes there |
|---|---|
REPLACE_BOOKINGS_CHANNEL_ID |
The Slack channel that gets the alerts: its ID (starts with C), not the name |
Also review the defaults with them: BOT_NAME and BOT_ICON in config.ts (the name and emoji or image URL shown on each alert), and MESSAGE_PREVIEW_LENGTH in workflow.ts (how many characters of the message show, 280 by default).
- What does the chat tool send? The code expects
sender_email,sender_type,message_textandconversation_url. If the tool uses other field names, change theInputSchemakeys inworkflow.tsto match before installing. - What value marks a message as coming from an outside contact? The code expects
sender_type: "external". Anything else is skipped.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/send-live-chat-inquiries-to-your-bookings-channel, replace each REPLACE_… value as this file says, then run npx zap-pack deploy send-live-chat-inquiries-to-your-bookings-channel, 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 with the bookings channel, and make sure that connection is a member of that channel. Webhooks by Zapier needs no connection. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/hook.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 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 (run_workflow_draft in Zapier MCP) before publishing:
{
"sender_email": "visitor@example.com",
"sender_type": "external",
"message_text": "Hi, do you have availability for a demo next Tuesday?",
"conversation_url": "https://example.com/live-chat/conversation-id"
}
Check that one message appears in the bookings channel, with the bot name, the sender in bold, the message text and an "Open conversation" link. The run's Slack step output has the message's permalink, which is a good read-back. Then run the same sample with "sender_type": "internal", and check that the run finishes as skipped with reason not-an-external-contact and that nothing appears in the channel.
If run-status tools aren't available, check the result in Slack directly. Ask the user to delete the test messages; the agent doesn't delete them. Then publish and confirm the trigger is active.
Notes
- The alert is posted as a bot, so it can't be replied to from a person's name; coordinators reply in the chat tool through the link.
- After publishing, give the user the catch hook URL to point their chat tool at. Anyone with that URL can post into the bookings channel, so keep it out of shared documents and public repositories.
- To route high-intent messages to an on-call user or send a direct message to the booking owner, or to hide phone numbers or card details, add a step before the post.