Agent setup guide
Order → Adyen Payment Link
When your system posts an order that needs paying, an Adyen payment link for the exact amount is emailed to the shopper once you approve.
What it does
When your system posts an order that needs paying, an Adyen payment link for the exact amount is emailed to the shopper once you approve.
- Starts when your system posts an order that needs paying.
- AI writes a short email in your tone, without any amount.
- A person approves every email in Reviews; nothing is created or sent before that.
- Code checks the recipient, the order reference, a whole-number amount and leftover placeholders.
- Creates an Adyen payment link for the amount your system sent and emails it from Gmail.
What it needs
- A paid plan (agents run live on paid plans).
- An AI provider key (Settings → AI Providers).
- Adyen: an API key, your merchant account and (for Live) your live endpoint prefix (an Adyen merchant account; live processing needs an approved Adyen contract).
- Gmail, connected in Settings → Integrations, and a system that can post orders to a webhook.
What it doesn't do
- The AI never writes or converts an amount.
- It doesn't charge anyone: the shopper pays on Adyen's page.
- It doesn't tell you when the link is paid (Adyen reports that by webhook in its Customer Area).
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: Adyen and Gmail.
- A form, app or system that can send each new item to a webhook URL (the agent starts from a webhook).
- 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 Adyen
Connect Adyen with your API key, merchant account and live prefix (Settings → Integrations → Adyen).
3. Connect Gmail
Connect the Gmail account the email is sent from.
4. Write your email rules
Open “Write the email” and replace the placeholder.
| Setting | What to enter | In step |
|---|---|---|
| Your email rules | Replace the placeholder with your company, tone, sign-off and what the email says about paying. It starts as “[YOUR COMPANY NAME, YOUR TONE, YOUR SIGN-OFF AND WHAT THE EMAIL SAYS ABOUT PAYING (E.G. THE ORDER SHIPS ONCE IT'S PAID; HOW TO REACH YOU WITH QUESTIONS)]” until you replace it. | “Write the email” |
5. Pick Adyen and Gmail
Open “Create the Adyen payment link” and “Send it from Gmail” and pick your accounts.
| Setting | What to enter | In step |
|---|---|---|
| Adyen account | Your Adyen connection (Live). Pick your connected Adyen account. | “Create the Adyen payment link” |
| Gmail account | The Gmail account the email is sent from. Pick your connected Gmail account. | “Send it from Gmail” |
6. Test it with Dry Run
Press Dry Run: the agent runs on sample data with no messages sent and nothing written to your apps.
7. Switch the trigger on
Open the trigger, copy the webhook URL and secret into your order system and switch it on. Fields: order_reference, amount_minor, currency, shopper_email, shopper_name, description.
How it works
The agent is a normal workflow with 10 steps (1 AI step, with a person approving in Reviews). You can open, edit and monitor it like any other workflow.
- Order needs payment — Starts when your form or app sends data to the agent's webhook URL. Your shop, ERP or a form posts the order here: order_reference, amount_minor (whole number in minor units: 12500 = €125.00), currency, shopper_email, shopper_name and description.
- Write the email — AI step (runs on your AI provider key). AI writes a short email asking the shopper to pay for the order. 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 shopper, the email and the order 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, an order reference, a whole-number amount 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, reference, amount or leftover placeholders); no link was created. The reason is in the run history.
- Create the Adyen payment link — Adyen: Create a payment link. Branch: Passes. Creates an Adyen payment link for the order amount your system sent (copied by code), with the order reference and shopper email. Adyen refuses a decimal amount, so a wrong unit can't slip through.
- Send it from Gmail — Gmail: Send an email. Sends the approved email from your Gmail with the payment link added by code.
- Sent — Kept in the run history. The run history keeps the order, the approved email and Adyen'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. Edit the sample to match the fields your own form or app sends.
Sample data fields
order_reference, amount_minor, currency, shopper_email, shopper_name, description.
- 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, copy the webhook URL and secret into your order system and switch it on. Fields: order_reference, amount_minor, currency, shopper_email, shopper_name, description.
- The webhook is protected by a secret: send it in the header shown in the Activation panel (requests without it are refused with 403). Each request starts one run.
- 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
Which amount does the link use?
Exactly the amount_minor your system sends, in minor units (12500 = €125.00). The AI never writes an amount, and Adyen refuses a decimal value.
How long does the link work?
Adyen's default: 24 hours. Set “Expires at” on “Create the Adyen payment link” for longer (up to 70 days).
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.
- Nothing happens when your form sends data: check the webhook is switched on and the request carries the secret header (403 means it's missing or wrong).
- 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 .