Browse the docs

Agent setup guide

Won Deal → Mollie Payment Link

When a HubSpot deal reaches your stage, a Mollie payment link for the deal amount is emailed to the right contact once you approve.

Available About 10 min to set up

What it does

When a HubSpot deal reaches your stage, a Mollie payment link for the deal amount is emailed to the right contact once you approve.

  • Starts when a HubSpot deal moves into the stage you pick.
  • Lists the deal's contacts; AI picks the recipient by your rules and writes a short email without any amount.
  • A person approves every email in Reviews; nothing is created or sent before that.
  • Code checks the recipient, that the deal amount is a number and that no placeholders are left.
  • Creates a one-time Mollie payment link for the deal amount as written, sends it from Gmail and notes it on the deal.

What it needs

  • A paid plan (agents run live on paid plans).
  • An AI provider key (Settings → AI Providers).
  • Mollie: a Live API key of your website profile (Developers → API keys; Mollie serves businesses in the EEA, Switzerland and the UK).
  • HubSpot and Gmail, connected in Settings → Integrations.

What it doesn't do

  • The AI never writes or changes an amount: the link is for the deal amount as written on the deal.
  • It doesn't charge anyone: the customer pays through Mollie's page.
  • It doesn't create HubSpot contacts or change the deal stage.

Availability and plans

Available

Its workflow is built and tested, and every app it needs is live. You can get it and set it up now.

Included free on the Enterprise plan; on other paid plans it's a one-time purchase per workspace (the price is on the Agents page). The Agents page in the app always shows its current status.

Before you start

  • A paid plan: agents run live, and the Free plan only runs Dry Runs.
  • An AI provider key (OpenAI, Anthropic, Google and more) in Settings → AI Providers. AI usage is billed by your provider.
  • These apps, connected in Settings → Integrations: HubSpot, Mollie and Gmail.
  • The app it watches, connected in Settings → Integrations (the agent starts from an app event).
  • About 10 minutes.

Set it up step by step

Get the agent first (buy it, or it's already yours when your plan includes it), then in Agents → My agents press “Set up this agent”. That creates the agent's workflow in your workspace (it counts towards your plan's workflow limit) and opens the canvas with a setup checklist above it. Each item links to the exact place to go and ticks itself off when it's done.

1. Connect your AI provider

The AI steps run on your own key (OpenAI, Anthropic, Google and more). Add one in Settings → AI Providers.

2. Connect HubSpot

Connect the HubSpot account your deals live in (Settings → Integrations → HubSpot).

3. Connect Mollie

Connect Mollie with your Live API key (Settings → Integrations → Mollie).

4. Connect Gmail

Connect the Gmail account the email is sent from.

5. Pick the payment stage

Open the trigger and pick your HubSpot account, the pipeline and the stage that means “send the payment link”.

SettingWhat to enterIn step
HubSpot account (deal trigger)The HubSpot account whose deals start the agent. Pick your connected HubSpot account.“Deal reached your stage”
Deal pipelineThe HubSpot pipeline your deals move through.“Deal reached your stage”
Payment stageThe stage that means “send the payment link”, e.g. Closed won.“Deal reached your stage”

6. Write your email rules

Open “Find the deal's contacts” and pick your account, then replace the placeholder in “Write the email”.

SettingWhat to enterIn step
HubSpot account (contacts)The same HubSpot account, to read the deal's contacts. Pick your connected HubSpot account.“Find the deal's contacts”
Your email rulesReplace the placeholder with your company, who receives the link, your tone, sign-off and what the email says about paying. It starts as “[YOUR COMPANY NAME, WHO RECEIVES THE PAYMENT LINK (E.G. THE CONTACT WHOSE TITLE INCLUDES FINANCE OR OWNER), YOUR TONE, YOUR SIGN-OFF AND WHAT THE EMAIL SAYS ABOUT PAYMENT (E.G. DEPOSIT DUE BEFORE WORK STARTS)]” until you replace it.“Write the email”

7. Pick Mollie, Gmail and HubSpot

Open “Create the Mollie payment link”, “Send it from Gmail” and “Note it on the deal” and pick your accounts.

SettingWhat to enterIn step
Mollie accountYour Mollie connection (Live). Pick your connected Mollie account.“Create the Mollie payment link”
Gmail accountThe Gmail account the email is sent from. Pick your connected Gmail account.“Send it from Gmail”
HubSpot account (note)The same HubSpot account, to note the link on the deal. Pick your connected HubSpot account.“Note it on the deal”

8. Test it with Dry Run

Press Dry Run: the agent runs on sample data with no messages sent and nothing written to your apps.

9. Switch the trigger on

Open the trigger and click “Activate app trigger”: deals that move into the stage from now on start the agent.

How it works

The agent is a normal workflow with 12 steps (1 AI step, with a person approving in Reviews). You can open, edit and monitor it like any other workflow.

  • Deal reached your stage — Starts on “Deal entered a stage” in HubSpot (an app event). Starts when a HubSpot deal moves into the stage you pick (e.g. “Closed won” or “Deposit due”), with the deal's name and amount.
  • Find the deal's contacts — HubSpot: Find records. Lists the HubSpot contacts linked to the deal: name, email, job title and company.
  • Write the email — AI step (runs on your AI provider key). AI picks who receives the payment link from the deal's contacts by your rules and writes a short email. The amount and the link are added by code.
  • Approve the payment link — A person approves or rejects it in Reviews (the run waits). A person checks the recipient, the email and the deal amount in Reviews, edits the email if needed and approves. No link is created and nothing is sent before this approval.
  • Not approved — Kept in the run history. Branch: Rejected. Rejected: no link was created.
  • Check before creating — Step. Branch: Approved. In code, after approval: one valid recipient, a deal amount that is a number, and no placeholders left in the email.
  • Passes the checks? — Decision: picks the branch to follow. Links that pass are created; the rest are held for a person.
  • Held — Kept in the run history. Branch: Held. The approved email failed a check (recipient, amount or leftover placeholders); no link was created. The reason is in the run history.
  • Create the Mollie payment link — Mollie: Create a payment link. Branch: Passes. Creates a one-time Mollie payment link for the deal amount as written on the deal (copied by code), described with the deal name.
  • Send it from Gmail — Gmail: Send an email. Sends the approved email from your Gmail with the payment link and amount added by code.
  • Note it on the deal — HubSpot: Add a note. Logs the payment link and who received it on the HubSpot deal.
  • Sent — Kept in the run history. The run history keeps the deal, the approved email and Mollie's link.

Test it with Dry Run

Press Dry Run in the canvas. The agent runs on the sample data stored on its trigger (the “Sample data for Dry Run” box), so you can check every step's output before anything is live. The sample has the same shape as a real event from the app.

Sample data fields

id, dealname, amount, pipeline, dealstage, closedate, owner_id, createdate, properties.

  • Nothing is sent or written: app actions, emails and Slack posts are simulated, and AI steps don't call your AI provider.
  • Approval steps use the Dry Run decision you pick in the step's settings (approved, rejected or timeout), so you can try each branch.

Go live

  • Open the trigger and click “Activate app trigger”: deals that move into the stage from now on start the agent.
  • Activating the app trigger needs the trigger's connected account. The first check only remembers what's already there, so older items don't start runs; the same item never starts two runs.
  • The setup checklist adds a “paid plan” item before activation: live runs need a paid plan (the Free plan only runs Dry Runs).
  • When every checklist item is done and the trigger is on, the checklist says “Live — this agent is running”. Follow its runs in the workflow's History tab and in Analytics → Agents.

Questions

Can the AI change the amount?

No. The amount is copied from the HubSpot deal by code, and a person approves every link before it's created.

Which currency?

Euros by default. To bill in another currency your Mollie account accepts, change Currency on “Create the Mollie payment link”.

Is the email sent automatically?

No. Every email waits for your approval in Reviews.

Troubleshooting

  • “No AI provider connected” or a rejected key: connect or fix the key in Settings → AI Providers, then press Test there.
  • A checklist item stays unticked: the setting is still empty or still contains its placeholder text. Open the step from the checklist and fill it in.
  • An app step fails with “Needs reconnect”: the account's access was revoked or expired. Reconnect it in Settings → Integrations.
  • No runs start: activate the app trigger with a connected account. Only items created after activation start runs.
  • A run shows as paused: it's waiting for someone in Reviews to approve or reject it.
  • A step failed: open the run in History and check that step in the Trace tab for the error and what it received.

Generated from the agent's own workflow, so it always matches what the agent does. Last updated .