"Agreed to pay" on the call: payment link and invoice

An AI voice agent calls existing customers whose annual maintenance contract is due. When a customer agrees to renew, the post-call workflow sends a payment link for the exact amount from your own Razorpay or Stripe account by WhatsApp or SMS, and creates a draft invoice for them in Edesy Invoice.

Works natively: every step is set up inside the Edesy apps themselves, with no other tool in between.

How it connects

Native

Apps

Edesy AI Voice AgentRazorpayEdesy Invoice

Starts when

Call analysed (call.analyzed)

Good for

Home services, B2B trade, Any business

How the recipe runs

Each hop is labelled with how it connects today.

  1. When

    Edesy AI Voice Agent

    Call analysed (call.analyzed)

    Built in
  2. Then

    Razorpay

    Send a payment link (post-call step)

    Built in
  3. Then

    Edesy Invoice

    Create an invoice (voice post-call webhook step)

  1. 1

    Edesy AI Voice Agent: Call analysed (call.analyzed)

    The Data extracted trigger fires after each renewal call with agreed_to_pay, the plan chosen and the amount, plus the customer's Edesy Invoice customer ID passed in as a call variable.

  2. 2

    Razorpay: Send a payment link (post-call step)

    After a Condition step (agreed_to_pay is true), the Send payment link step creates a link for {{amc_amount}} in INR from your own gateway, with a description like "AMC renewal, RO purifier", and sends it to {{recipientPhone}} by WhatsApp, SMS or both.

  3. 3

    Edesy Invoice: Create an invoice (voice post-call webhook step)

    A Webhook step posts to https://invoice.edesy.in/api/v1/documents with Authorization: Bearer inv_..., type invoice, the customer ID from the call variables and one line item for the plan, creating a draft invoice in the right number series.

Result: Customers who say yes on the call can pay within minutes, and your accounts team finds a matching draft invoice waiting instead of retyping the renewal from call notes.

Ways to adapt it

Part payment or EMI

Let the agent offer two instalments, extract the first amount, and send the link for that; the invoice still carries the full plan value.

Issue a paid invoice after payment

Instead of a draft, wait for the payment to land and record it in Edesy Invoice, so the customer receives a paid tax invoice.

Reminder if unpaid

Add a Delay step and a WhatsApp template reminder for links that are still unpaid the next day.

About the "Agreed to pay" on the call: payment link and invoice template

Renewal calls are where small service businesses quietly lose money. The customer says yes, the executive promises to "send the details", and by the time a payment link goes out the next afternoon the customer has forgotten, or a local technician has offered a cheaper deal. This recipe closes that gap: the moment the call is analysed and the agent has recorded that the customer agreed and at what price, a payment link for that exact amount goes to their WhatsApp and SMS from your own Razorpay or Stripe account. At the same time a draft invoice is created in Edesy Invoice against the right customer, so accounts does not rebuild the sale from call notes and GST numbering stays in one place. The agent quotes only prices you put in the prompt, and the amount comes from what the customer accepted, so there is no room for a mistyped figure. Customers who want to think about it get a callback outcome instead of a link they did not ask for.

Who it is for

Service companies with a base of existing customers on annual contracts: water purifier and appliance AMC providers, pest control, lift and generator maintenance, software subscriptions billed annually, and coaching institutes collecting the next instalment. It fits teams that already keep customers in Edesy Invoice and want renewals collected without a collections desk making every call.

Sample data

What goes in, and what the team sees at the end. Field names are suggestions; map them to your own.

Data in

FieldExample
recipientNameLakshmi Narayanan
recipientPhone+919884023456
invoice_customer_id7c1e9a52-...Call variable from your customer list
productRO water purifier, installed March 2024Call variable
plan_chosenComprehensive AMC, 1 yearExtraction field
amc_amount3999Extraction field, in rupees
agreed_to_paytrueExtraction field

Data written back

FieldExample
Payment link₹3,999, "AMC renewal, RO purifier", expires in 48 hours
Sent viaWhatsApp and SMS
InvoiceDraft INV-0412 for Lakshmi Narayanan
Line itemComprehensive AMC, 1 year, ₹3,999 incl. GST
Invoice statusDraft, for accounts to review and send

Sample call

  1. AI agent

    Vanakkam Lakshmi madam, this is Divya from AquaCare. The maintenance plan for your RO purifier ends on 15 December. Shall I tell you the renewal options?

  2. Caller

    Yes, what is the price this year?

  3. AI agent

    The comprehensive plan with filters and two services is 3,999 rupees including GST. The basic plan without filters is 2,499.

  4. Caller

    Comprehensive is fine. How do I pay?

  5. AI agent

    I will send a secure payment link for 3,999 on WhatsApp and SMS right after this call. It is valid for 48 hours, and the invoice follows from our accounts team.

  6. Caller

    Okay, I will pay tonight.

Set it up

Works natively: every step is set up inside the Edesy apps themselves, with no other tool in between.

  1. 1

    Razorpay

    Connect your payment gateway

    In the voice agent, connect your own Razorpay or Stripe account under Integrations, Payments. Money is collected into your account, not Edesy's.

    Razorpay setup
  2. 2

    Edesy Invoice

    Prepare Edesy Invoice

    Make sure each customer you will call exists in Edesy Invoice, export their customer IDs with your call list, and create an inv_ API key in Settings.

    Open Edesy Invoice
  3. 3

    Edesy AI Voice Agent

    Set up the renewal agent

    Use your renewal script with the plan prices in the prompt, pass customer name, product and invoice_customer_id as call variables, and extract plan_chosen, amc_amount and agreed_to_pay.

    Open the voice template
  4. 4

    Edesy AI Voice Agent

    Add the payment link step

    Post-call workflow, Data extracted trigger, Condition agreed_to_pay is true, then Send payment link with the amount field {{amc_amount}}, the phone field and Send via WhatsApp and SMS.

    Open Edesy AI Voice Agent
  5. 5

    Edesy Invoice

    Add the invoice Webhook step

    Below it, a Webhook step: POST https://invoice.edesy.in/api/v1/documents with the Authorization header, and a body with type, customerId, issueDate and one line for the plan.

    Open Edesy Invoice
  6. 6

    Edesy AI Voice Agent

    Test with your own number

    Add yourself as a test customer, call yourself, agree to renew, and check that the link arrives and a draft invoice appears in Edesy Invoice.

    Open Edesy AI Voice Agent

Prefer a full tutorial with screenshots of each screen? Read the setup guide in the docs.

Good to know

  • The payment link and the invoice are separate records: when the customer pays, record the payment against the invoice in Edesy Invoice. The two are not reconciled automatically.

  • The invoice step needs the customer to exist in Edesy Invoice with their ID passed into the call; it does not create new customers.

  • Payment links come from your own Razorpay, Stripe or PayU account, with that gateway's fees; Edesy does not collect the money.

  • Call only existing customers who agreed to service calls, between 9 am and 9 pm, and stop if they ask. Calls are billed per minute plus telephony.

Consent, calling hours and limits

  • Call only people who agreed to be called: every form in these recipes has a required consent box.

  • Calls go out between 9 am and 9 pm; anything later is scheduled for the next morning.

  • The agent says which business it is calling for and stops calling anyone who asks it to.

What gets created in each app

The per-app templates this recipe starts from. Open any of them to see the full structure.

"Agreed to pay" on the call: payment link and invoice: frequently asked questions

No, and it should not. The agent agrees the plan and amount, and the customer pays through a hosted Razorpay or Stripe link sent by WhatsApp or SMS, so no card or UPI details are spoken on the call.

Into your own gateway account. The Send payment link step uses the Razorpay or Stripe account you connected under Integrations, Payments; without one it stops with a "connect your gateway" error rather than collecting elsewhere.

The Webhook step creates it as a draft, so your accounts team can check GST, place of supply and the series before issuing. If you prefer, add the customer's e-mail and send it from Edesy Invoice once payment arrives.

The call recording and transcript sit with the call, and the amount on the link came from the extracted amc_amount, so you can play back the exact moment the customer chose the plan.

A two-minute renewal call is about ₹12 on pay as you go at ₹6 a minute, plus telephony, and ₹4 a minute on plans. Gateway fees apply on the payment, as with any Razorpay link.

Related templates

Call customers about overdue invoices and record their promise to pay

When an Edesy Invoice invoice turns overdue, Edesy Workflow looks up the customer's phone and the AI voice agent calls them: invoice number, balance, due date and a pay link on WhatsApp. The agent asks when they will pay, and the promise-to-pay date, any dispute and a summary go into an Edesy Tables collections table.

Trigger set up for youInvoice → Workflow → AI Voice Agent → WhatsApp → Tables
Order form to a payment link and GST invoice

A customer fills in your order form, Edesy Workflow emails them a Razorpay payment link for the order total, and when the payment succeeds it asks Edesy Invoice to issue a paid GST invoice and email it with the receipt. Unpaid orders expire on their own and nobody chases a screenshot.

With Edesy WorkflowWorkflow → Razorpay → Invoice
Send the right WhatsApp follow-up after every call

Right after an Edesy AI voice agent call, the post-call workflow reads the outcome and sends the matching WhatsApp template from your business number: brochure and price list for interested buyers, site location for booked visits, and a "we will call you at 7" note for callbacks. Not-interested callers get nothing.

NativeAI Voice Agent → WhatsApp
No answer? Retry, send an SMS, call again next morning

When an AI call to a lead is busy or unanswered, the voice agent retries twice the same day. After the last attempt it sends an SMS saying who called and why, and a follow-up workflow calls once more at 10 am the next day. Leads who still do not pick up are closed as No answer.

NativeAI Voice Agent → SMS