Recipes
Build a real-time insights dashboard#
tilopay_sales_summarybrings totals, costs and net for the period you want to monitor.tilopay_analyze_salesturns those numbers into a narrative summary with trends and observations.tilopay_list_transactionslists recent transactions to complete the board.tilopay_get_transactionopens the detail of any operation that needs review.
The summary uses UTC, not local time. If the merchant has low volume, trends and top customers may come back empty.
Example dashboard questions#
- “How did I do today?” →
tilopay_sales_summary+tilopay_analyze_sales. - “What are my best-selling products or services this week?” →
tilopay_analyze_salesover the last 7 days. - “Do I have failed or pending transactions?” →
tilopay_list_transactionsfiltered by status, thentilopay_get_transactionfor each case. - “How are my net earnings evolving versus last month?” → compare two
tilopay_sales_summarycalls with different date windows.
Sell over WhatsApp from the catalogue#
tilopay_catalog_list_itemslists the merchant's products or services so the agent answers the customer with real names and prices.tilopay_catalog_get_itemopens the chosen item when price, currency or description must be confirmed before building the order.- The agent builds the order, computes the total and confirms it with the customer before charging.
tilopay_save_contactstores the buyer (name, email, phone) to attach them to the charge and reuse them in future sales.tilopay_create_payment_linkcreates the link for the order total, with a description that identifies the order.tilopay_send_payment_link_whatsappprepares the message to the customer.tilopay_get_payment_linkchecks the link status to confirm payment and close the conversation with the receipt.
tilopay_send_payment_link_whatsapp does not send the message: it returns a wa.me link with the
text ready to send in one tap. If there is no phone and no saved contact with that name, the tool
asks for it. The agent can keep polling tilopay_get_payment_link to notify the merchant as soon as
the link is paid.
With this recipe a merchant without an online store sells end to end inside the chat: catalogue, order, charge and confirmation, with no human intervention beyond what the merchant chooses to require.
Recover failed recurring charges (smart dunning)#
tilopay_recurring_list_planslists the merchant's active plans.tilopay_recurring_subscriber_paymentswalks the payments of each plan's subscribers and separates the period's declined charges.tilopay_get_transactionopens each decline to read the response code and classify the cause: insufficient funds, expired card, blocked card, suspected fraud.- Based on the cause, the agent decides the action and proposes it to the merchant: wait for the plan's retry when the decline is transient (insufficient funds), or ask the customer for a new payment method when it is final (expired or blocked card).
tilopay_create_payment_linkcreates a link for the outstanding amount when the customer must pay the instalment with another card.tilopay_send_payment_link_whatsapportilopay_send_payment_link_emailprepares the message to the customer with wording adapted to the decline reason.tilopay_get_payment_linkconfirms when the customer paid, andtilopay_recurring_get_subscriberverifies the subscriber's status after recovery.
An agent running this recipe every morning turns the decline list into two queues: the one that resolves itself with the plan's retry and the one that needs a message to the customer. The merchant only receives the summary: how many charges were recovered and which remain pending.
Do not use tilopay_recurring_manage_subscriber to "punish" a decline: pause and delete affect
future charges and delete cannot be undone. Pausing or removing a subscriber is a merchant
decision with explicit human confirmation, never an automatic reaction to a failed charge.
B2B collections with accounts receivable#
tilopay_list_contactsbrings the merchant's business customers;tilopay_save_contactregisters the missing ones with the payer's name, email and phone.tilopay_create_payment_linkcreates a link per outstanding invoice, with the invoice number in the description and a due date.tilopay_send_payment_link_emailprepares the first send;tilopay_send_payment_link_whatsappprepares the reminder when the invoice is still unpaid.tilopay_get_payment_linkchecks each link's status to update the receivables list without opening the panel.baas_search_paymentorbaas_list_paymentslook in the merchant's bank accounts for a direct transfer (SINPE or bank transfer) matching the amount and customer, to mark as paid an invoice the customer settled outside the link.tilopay_delete_payment_linkremoves the link of an invoice already paid by transfer, to avoid a double charge.
This recipe answers the "have they paid me yet?" that eats administrative hours in businesses that invoice companies: one list with invoices, links, status and payments received through any channel.
The baas_* tools are read-only and require support to have registered the merchant's banking API
credentials. If they are not configured, the tool says so and the recipe keeps working with payment
links alone.
Project cash with gateway and bank data (pocket CFO)#
tilopay_sales_summarybrings the last weeks of sales to estimate expected income for the next period.tilopay_recurring_list_plansandtilopay_recurring_get_planquantify committed recurring charges and their dates.baas_list_balancesorbaas_get_balancebring the real balance of each of the merchant's bank accounts.baas_list_paymentslists the last months of transfers to detect recurring outflows: payroll, rent, suppliers.baas_analyze_paymentssummarises those movements in natural language to identify patterns and peak dates.- The agent combines balance, expected inflows and expected outflows into a daily projection, flags the days with minimum or negative balance and proposes actions.
tilopay_create_payment_linkandtilopay_send_payment_link_emailput outstanding invoices out for collection when the merchant approves that action.
The value is in crossing two sources that normally live apart: the gateway knows what is coming in and the bank knows what is there and what goes out. A weekly routine produces a short briefing with the projection and the alerts, before the business opens.
The baas_* tools never initiate, approve or reverse transfers. If the projection suggests moving
funds between accounts, a person executes that at the bank; the agent only recommends and records
it. The projection is an estimate, not a financial statement.
Detect anomalies and act#
tilopay_sales_summarycompares the current window (for example the last hour or the day) against the same reference period to detect approval drops, decline spikes or sudden changes in average ticket.tilopay_list_transactionsfilters by status to see whether declines concentrate on one payment method, one currency or a pattern of repeated attempts.tilopay_get_transactionopens representative cases to read the response codes.tilopay_diagnosticschecks credentials and endpoint availability to separate a problem in the merchant's integration from a problem with customers or issuers.tilopay_help_guidessearches the official guides for the explanation and the fix that match the response code or the symptom.- The agent raises the alert with the diagnosis already done: what changed, since when, probable cause and suggested action.
The sales summary uses UTC. When comparing short windows, align the hours; a "drop" at local midnight may just be the UTC day cut. Many declined attempts in a few minutes with small amounts and different cards may indicate stolen-card testing: report it to support instead of retrying.
Close the month sales#
tilopay_sales_summaryreturns totals, costs and net for the period.tilopay_analyze_salesproduces the natural-language report.tilopay_get_transactionbrings the detail of the transactions that need review.
The hours and days in the summary are in UTC, not local time. Trends and top customers come back empty when the sample is small.
Refund with human confirmation#
tilopay_list_transactionslocates the transaction in the date range.tilopay_get_transactionshows the detail to confirm it is the right one.- The agent asks the user for confirmation. That step is enforced by the MCP client, not by Tilopay.
tilopay_modify_transactionruns the modification with the action and the amount.
Review a recurring subscription#
tilopay_recurring_list_planslists the merchant recurring billing plans.tilopay_recurring_get_planopens the plan you care about by its ID.tilopay_recurring_get_subscribershows the subscriber detail.tilopay_recurring_subscriber_paymentslists that subscriber payments to see which went through and which did not.
Useful to answer "why does this customer show no charge this month?" without opening the dashboard.
Optimise subscription plans#
tilopay_recurring_list_planslists the active plans with price and frequency.tilopay_recurring_get_planopens each plan for its subscriber count and configuration.tilopay_recurring_subscriber_paymentswalks payments per subscriber to compute, per plan, the successful-charge rate, the month when most subscribers stop paying and the average tenure.tilopay_recurring_get_subscriberreviews the outliers the analysis flags.- The agent presents the comparison between plans: retention, revenue per subscriber and churn point, and proposes changes to price, frequency or content.
tilopay_create_payment_linklets you test a new offer with a small segment of contacts before modifying a plan.
This is pricing analysis with real charge data. The agent does not modify plans: it proposes, and the merchant decides in the panel.
Pause or cancel a subscriber#
tilopay_recurring_get_subscriberconfirms the subscriber is the right one.- The agent asks the user for confirmation, with the name and the plan in plain sight.
tilopay_recurring_manage_subscriberrunspause,reactivateordelete.
tilopay_recurring_manage_subscriber is marked sensitive: it affects future charges and delete
cannot be undone. Never run it without explicit human confirmation.
Charge a group with stored cards#
tilopay_saved_cards_list_groupslists the collection groups.tilopay_saved_cards_list_affiliatesshows the affiliates of the chosen group, so you know how many cards will be charged.- The agent summarises amount, currency, reason and number of affiliates, and asks for confirmation.
tilopay_saved_cards_create_paymentscreates the charges.tilopay_saved_cards_list_collectionsandtilopay_saved_cards_collection_detailreview the result: the second one needs thecodereturned by the first.
tilopay_saved_cards_create_payments moves real money from the stored cards. Treat it as a
one-shot operation: confirm before, and verify after with the collection detail.
Debug an integration and support a developer#
tilopay_diagnosticstests the credentials and one endpoint per API group, to separate a credentials problem from a request problem.tilopay_debug_codereceives the code snippet, log or stack trace and returns diagnosis, root cause, fix and risks.tilopay_help_guidesanswers panel usage questions with the official guides.tilopay_list_transactionsandtilopay_get_transactionconfirm whether the operation the developer believes failed actually reached Tilopay, and with what result.
tilopay_debug_code does not read the repository or run the code: it analyses only what you pass
in. Strip credentials from the snippet before sending; the tool masks what it recognises as a secret,
but that does not replace your review.
With these four tools a support agent handles the whole technical onboarding: verifies the account, finds the cause of the error, delivers the fix with the official guide and confirms against real transactions. Repeated questions are the signal of which guide or example the portal still needs.
Sandbox test cards are in the portal's testing guide. Sandbox mode is switched from the account; there is no separate host.
Tilopay as a tool for other agents#
- The merchant requests MCP server access with the portal form (name of the responsible person, merchant email and merchant name); support confirms approval and the terms of use.
- The external agent (an ERP assistant, an online-store bot, an accounting agent) connects the MCP
server with those credentials and runs
tilopay_diagnosticsto verify the connection. - With the tool catalogue loaded, the external agent uses the read tools (
tilopay_sales_summary,tilopay_list_transactions,tilopay_recurring_*,baas_*) to answer business questions inside its own conversation. - For actions that create or move money (
tilopay_create_payment_link,tilopay_modify_transaction,tilopay_saved_cards_create_payments,tilopay_recurring_manage_subscriber) the external agent applies the confirmation policy described on the permissions page before executing.
This recipe changes the MCP's position: it is not just an assistant inside Tilopay, it is the payments layer any agent can call. Every other recipe on this page works the same when a third-party agent runs it.
MCP usage may carry additional costs depending on volume; support details them when validating the merchant's transaction volume. Tools marked as sensitive require human confirmation in whichever MCP client runs them, Tilopay's or a third party's.
Last verified: 2026-09-04 · Owner: equipo-integraciones