Triage inbound ClickSend SMS replies into Slack and HubSpot

By General Input

Every 10 minutes, an agent reads new replies to your ClickSend numbers, classifies each one, routes it to the right Slack channel, and logs it on the HubSpot contact.

Integrations

  • ClickSend
  • Slack Bot
  • HubSpot

Type

Agentic Task

Categories

  • Customer Support
  • Sales

Build an agent workflow that triages inbound SMS replies to my ClickSend dedicated numbers. It should run on a cron trigger every 10 minutes.

On each run, use ClickSend Get Inbound SMS to fetch recent inbound messages, filtered to only messages received since the last run. The agent should maintain its own high-water mark (the most recent message id or timestamp it has already processed) so it never reprocesses the same reply. If this is the first run, only look at messages from the last 10 minutes.

For each new message, classify it into exactly one of these labels: sales_question, support_request, appointment_confirmation, opt_out, spam, or unclear. Base the classification on the message body and any obvious signals like STOP or UNSUBSCRIBE keywords for opt-outs.

Then route based on the label using Slack Bot Send a Message:

- sales_question: post to a sales Slack channel with the sender number, the full inbound message body, the classification, and a suggested one-line reply the agent drafts.

- support_request: post to a support Slack channel with the same shape (number, body, label, suggested reply).

- appointment_confirmation: post a short, quiet acknowledgement to an appointments Slack channel or thread.

- opt_out: post to a dedicated opt-outs Slack channel and clearly flag that the sender number should be removed from future campaigns.

- spam: log a low-noise line to an opt-outs or moderation channel and take no other action.

- unclear: post to the support channel and mark it as needing a human to review.

After posting to Slack, look up the sender phone number in HubSpot using Search Contacts (search by phone). If exactly one contact matches, use HubSpot Create Note to record the inbound message body and its classification on that contact. If there is no match or multiple ambiguous matches, skip the HubSpot step for that message and note that in the Slack post.

Ask me for the four Slack channel names or ids up front (sales, support, appointments, opt-outs), and remember them for future runs. Keep messages compact and readable. Never send an outbound reply to the customer automatically. The suggested reply text is only for a human to read in Slack.

Related prompts

Explore more prompts
A brand asset library your marketing team actually searchesTurn Mailjet email clicks into ranked HubSpot follow-upsClean out the Looker dashboards and Looks nobody opensLiveKit live operations console for room moderationWake up dormant Keap leads with a researched reasoniMessage campaign console with pre-flight checks and delivery boardLiveChat coverage board for planning next week's shiftsPhone routing control panel for LiveKit voice agentsA searchable RFP answer library your bid team drafts fromLinkedIn Ads budget pacing dashboard for every client account