Add HubSpot account context to new HappyFox tickets

By General Input

Every 30 minutes we match new HappyFox tickets to their HubSpot account and drop a private briefing into the ticket, so agents never reply blind.

Integrations

  • HappyFox
  • HubSpot
  • Slack Bot

Type

Agentic Task

Categories

  • Customer Support
  • Sales

Every 30 minutes during business hours, enrich brand new HappyFox tickets with account context from HubSpot so support agents never answer blind. Use HappyFox List Tickets to page through tickets created since the last run that are still unassigned, and handle pagination yourself rather than assuming a single page covers the window.

Before doing any work on a ticket, check whether it already carries an account briefing note from a previous run, and skip those tickets entirely so reruns never double-post. Open every note you write with the same recognizable first line, for example "Account briefing", so this check stays reliable over time.

For each remaining ticket, take the requester's email address and run HubSpot Search Contacts on it. When there is no contact hit, fall back to HubSpot Search Companies matched on the email domain. Once you have identified the company, run HubSpot Search Deals to pull that company's open pipeline value, the stage of each open deal, and any renewal closing in the next 90 days. Capture the account owner along the way.

Write the result back into the ticket using HappyFox Add Staff Private Note as a short agent-only briefing. Keep it scannable rather than narrative: company name, total open pipeline value, the stage of the largest open deal, the renewal date if there is one, the account owner's name, and any prior context worth knowing before replying. This is an internal note, never a customer-visible reply.

Then use HappyFox Update Ticket Tags to tag the ticket with the account tier, so saved views and reports can filter on it. Derive the tier from the account's value using boundaries that are easy to find and change.

When the matched account has open pipeline above a configurable threshold, or has a renewal closing inside 30 days, treat the ticket as an escalation. Raise the ticket priority on that same Add Staff Private Note call rather than making a separate update, and post a Slack Bot Send a Message alert to the account team channel that names the account owner, states plainly why the ticket was flagged, and links directly to the ticket.

HappyFox sets priority by numeric id rather than by name, so resolve ids first with HappyFox List Priorities and map the priority you want to its id before updating anything. Do not hardcode the numbers, since they differ between help desks.

When no CRM match is found, say so plainly in the note instead of inventing context. A note reading "No HubSpot match for this email address or domain" is far more useful to an agent than a confident guess. Never fabricate a company name, deal value, renewal date, or account owner.

Keep the open pipeline threshold, the renewal window, the account tier boundaries, and the Slack channel as obvious named values at the top of the workflow so they are easy to tune without rereading the logic.

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