Triage Facebook Messenger leads into HubSpot and Slack

By General Input

Every 15 minutes, sort new Facebook Page Messenger conversations into leads, support, or chatter, log leads in HubSpot, and ping your team in Slack.

Integrations

  • Facebook Pages
  • HubSpot
  • Slack Bot

Type

Agentic Task

Categories

  • Sales
  • Customer Support

Every 15 minutes, triage my Facebook Page Messenger inbox so real sales leads land in HubSpot and my team hears about hot inquiries in Slack. Trigger: cron every 15 minutes. facebook-pages is not a poll provider, so dedupe against the last-seen conversation updated_time from the previous run.

Step 1: Fetch new activity. Call facebook-pages List Conversations for the connected Page and keep only threads whose updated_time is newer than the last-seen watermark. For each of those threads, call facebook-pages Get Conversation Messages to pull the full message history so the classifier has the whole exchange, not just the latest message.

Step 2: Classify and extract. For each conversation, decide whether it is a sales lead, a support request, or general chatter. Extract any contact details the person shared: name, email, phone, company, and a one-line description of what they are asking about or interested in. Also assign an intent level: hot (asking for pricing, demo, quote, buying signals), warm (curious, evaluating), or low. For support requests, tag urgency as urgent or normal.

Step 3: Sync sales leads to HubSpot. For anything classified as a sales lead, upsert the person as a HubSpot contact. If the person shared an email, use hubspot Batch Upsert Contacts keyed on email so an existing contact gets updated instead of duplicated; if there is no email, fall back to hubspot Create Contact with whatever identifying properties are available. Set lifecycle stage to lead. Then call hubspot Create Note with a short summary of the Messenger exchange (their ask, their situation, and any contact details they shared) and associate the note with the contact you just upserted.

Step 4: Notify Slack for high-signal threads. For every hot lead and every urgent support request, use slackbot Send a Message to post one message to the configured Slack channel. The message should include: the classification and intent, a one-paragraph plain-English summary of the conversation, the extracted contact info (name, email, phone, company, ask), and a direct link back to the Messenger thread on facebook.com so a teammate can open it and reply. Warm leads and normal support requests still get logged to HubSpot but do not need a Slack ping. Skip general chatter entirely, but count it in the run tally.

Step 5: Bookkeeping. At the end of the run, update the last-seen watermark to the newest updated_time seen this run so the next run does not re-process the same threads. Keep a small tally per run of how many conversations were processed, how many were leads, how many were support, and how many were chatter.

Constraints. Do not send any outbound Messenger replies to customers, this is triage only. Match on email when upserting so we do not duplicate HubSpot contacts. If a required scope or credential is missing, fail the run with a clear error instead of silently skipping.

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