Mercado Pago payment link tool
Create a controlled tool that generates Mercado Pago payment links from customer, amount, and reference context, then returns the link to Max, an agent, or a workflow.

Connect the visible UI to the decision the lesson is teaching.
What you will build
A reusable tool that creates a Mercado Pago payment link from structured context instead of manual copy/paste.
The tool receives customer, amount, currency, description, internal reference, and optional expiration. It returns a payment URL plus a reference the team can track.
Before you start
Use your approved Mercado Pago backend endpoint or integration wrapper. The Academy page should guide the workflow, not expose secrets or duplicate the full Mercado Pago API reference.
Decide who can run the tool, which amounts require review, which records can be used as source context, and where the generated link is logged.
Create the tool in Studio
Connect it to Max, an agent, or a workflow
Max use case: a teammate asks, 'Create a payment link for this invoice.' Max should confirm amount and customer before calling the tool.
Agent use case: a support or sales agent can offer a payment link only after the customer, amount, and product or invoice are clear.
Workflow use case: a payment reminder workflow can call the tool when an overdue account needs a link, then send it by WhatsApp and log the activity.
Prompt pattern
When asked to create a Mercado Pago link, first identify the source record. Confirm amount, currency, customer, description, and external reference. If any required field is missing, ask for it before using the tool.
If the amount is above the approval threshold, ask for human confirmation before calling the tool. After the tool returns a link, show only the payment URL and a short confirmation. Never expose credentials or raw API errors to the customer.
Safe validation
Test in sandbox or staging first. Verify that the amount, currency, description, payer context, reference, and expiration are correct.
The blueprint is ready when the link opens, the reference can be tracked, the customer receives only the safe URL, and Activity or CRM records show who created it and why.
Common mistakes
Generating links from vague requests: require amount, customer, and reference before calling the tool.
Hardcoding tokens in prompts or tool descriptions: use secure configuration or your backend wrapper.
No audit trail: write the link creation event to Activity or the related record so operations can trace it later.
Returning raw errors to customers: convert failures into a safe internal handoff or retry path.
Agent Builder visual map

Transcript
Open searchable transcript
FAQs
Should Frontline store my Mercado Pago secret token?
Use a secure backend or approved secret handling path. Do not place secrets in prompts, messages, visible tool descriptions, or CRM fields.
What fields should the tool require?
Require amount, currency, description, customer or payer reference, and an internal external_reference. Add expiration date if your payment process needs it.
When should a human approve the link?
Require review when the amount is high, the customer is ambiguous, a discount is involved, or the request came from an untrusted source.