Sales
Tell the owner when an account hits its limit
When an account hits its plan limit, Merlin posts its usage and its owner in your sales channel. The owner can follow up with the context in hand.
@Merlin whenever PostHog sends a plan_limit_reached event, find the account in HubSpot or Attio from the organization on the event, with its owner and plan. Post here which limit they hit, their usage over the last 30 days from PostHog and who owns the account. Don't contact the customer or change their plan.
- Starts whenPostHog sends a
plan_limit_reachedevent to Merlin's webhook Merlin worksClaude Code or Codex finds the account and its owner in HubSpot or Attio and pulls its recent usage from PostHog
- You getA post in
#saleswith the limit they hit, their usage and the account owner
Tools
- PostHog
- HubSpot
- Attio
- Slack
Capabilities
- Automations
- Your agent's MCP
How it works
From a plan limit event to the account owner, with the context.
When an account hits its plan limit, your product's
plan_limit_reachedevent reaches Merlin's PostHog webhook and the automation starts a run.Claude Code or Codex finds the account in HubSpot or Attio from the organization on the event, with its owner and plan, then pulls the last 30 days of usage from PostHog.
A post in
#salessays which limit they hit, their usage and who owns the account. Merlin doesn't contact the customer or change their plan.
When an account hits its plan limit, your product's plan_limit_reached event reaches Merlin's PostHog webhook and the automation starts a run.
Claude Code or Codex finds the account in HubSpot or Attio from the organization on the event, with its owner and plan, then pulls the last 30 days of usage from PostHog.
A post in #sales says which limit they hit, their usage and who owns the account. Merlin doesn't contact the customer or change their plan.
Overview
Agents
Skills
Memory
Automations
Integrations
Settings
Tell the owner when an account hits its limit
PauseDetailsRun history
Trigger
Where events come from, the event that starts a run, and the filters it must match.
Run
What Merlin does each time, where it runs, and where the result goes.
whenever PostHog sends a plan_limit_reached event, find the account in HubSpot or Attio from the organization on the event, with its owner and plan. Post here which limit they hit, their usage over the last 30 days from PostHog and who owns the account. Don't contact the customer or change their plan.
Before and after
An account at its limit reaches its owner while it's still news.
Without Merlin
Someone spots the limit in PostHog, looks the account up in the CRM and tells the owner by hand.
- 01Spot the limit event
- 02Find the organization
- 03Pull 30 days of usage
- 04Look up the account
- 05Find the owner and plan
- 06Write up the context
- 07Message the owner
With Merlin
The event starts the lookup, and the owner gets the context in #sales.
- PostHog sends
plan_limit_reachedTo Merlin's PostHog webhook Looks up the account on Sam's MacBookHubSpot and 30 days of PostHog usage
- Usage and the owner in
#salesThe owner follows up
Setup
Send the limit event from PostHog, then let Merlin find the owner.
Set these up once and every account that hits a limit lands in #sales with its owner. Merlin never contacts the customer.
- 01Connect a machineRuntimeInstall the Merlin desktop app or CLI on a computer running Claude Code or Codex. You can also use a machine a teammate shares with your workspace.
- 02Send PostHog events to MerlinWebhooksAdd Merlin's webhook in PostHog with its setup steps. Nothing starts until its first event arrives.
- 03Add PostHog to your agentYour agent's MCPConnect the PostHog MCP server to Claude Code or Codex on the machine that runs this. Its credentials stay on that machine.
- 04Add HubSpot or Attio to your agentYour agent's MCPConnect the HubSpot or Attio MCP server to Claude Code or Codex on the machine that runs this. Its credentials stay on that machine.
- 05Add Merlin to SlackIntegrationsInstall the Slack app and add Merlin to the channel you work in. A private channel needs
/invite @Merlin. - 06Capture plan_limit_reached with the organizationWebhooks
Send
plan_limit_reachedfrom your product with the customer's organization and the limit on the event, so each run knows which account to look up. The automation only runs on events with that name. - 07Paste the setup promptAutomationsSend the prompt below to @Merlin in Slack, in the channel it should post to. Merlin creates the automation and tells you what it set up.
Prompt
Have Merlin tell the owner whenever an account hits its limit.
@Merlin whenever PostHog sends a plan_limit_reached event, find the account in HubSpot or Attio from the organization on the event, with its owner and plan. Post here which limit they hit, their usage over the last 30 days from PostHog and who owns the account. Don't contact the customer or change their plan.
Once, when you send it
- PromptYou send the prompt to @Merlin
- WebhookYou add Merlin's webhook in PostHog
- AutomationMerlin creates the automation
Every time the event arrives
- EventPostHog sends the event
- RuntimeMerlin picks the creator's machine first
- ContextThe run gathers context
- WorkClaude Code or Codex finds the account and its usage
- ResultMerlin posts the usage and the owner in #sales
- SteeringReplies in its thread follow up
Related use cases
More sales tasks you can hand to Merlin.
- AutomationsYour agent's MCP
Sales
Flag renewals at risk every month
Every month, Merlin checks the renewals due in the next 90 days. You get the ones with falling usage or open escalations in your sales channel.
Day 1 of every month at09:00Renewals at risk in#sales - AutomationsYour agent's MCP
Sales
Hand every new customer to success
When a new customer subscribes in Stripe, Merlin posts a handoff in your customer success channel. You get what they bought, who's involved and what they want first.
Stripe reports a new subscriptionA handoff note in#customer-success - AutomationsIntegrationsYour agent's MCP
Sales
Prep today's customer calls
Every weekday morning, get a brief for each customer call in your Slack DM. Each one covers the account, the plan, usage and which of their requests shipped since you last spoke.
Every weekday at08:00One brief per call in your DM
Bring your coding agents into the tools your team already uses.
Let your whole team hand work to Claude Code and Codex today. Connect one machine and add Merlin to Slack, Linear or GitHub. 14-day free trial, no API keys, no card.