Skip to content
GUIDES#AI sales agent#okdoc#Claude Code

How to Build a Personal AI Agent That Sends Quotes and Payment Pages Automatically: From Lead to Payment

The agent reads the call, clones your quote in Canva, uploads a contract with signature fields and payment, drafts the email and WhatsApp, then waits for your "send". Ten steps, a checklist, and the moment it almost went wrong.

Yaakov Tzedek
Yaakov Tzedek · AI expert·10 min read
An AI agent that sends quotes and payment pages, from lead to payment: a headline on a navy background with phone call, document, signature and credit card icons
THE BOTTOM LINE
  • A hands-on guide to building an AI agent in Claude that listens to the sales call in your CRM, clones your Canva quote, uploads a contract for e-signature and payment in okdoc, and sends email and WhatsApp from your own number, only after you approve.
under 2 minutesFrom "send" to client
Sumit, Stripe, PayPalLive payment providers
4Ways to collect
only after approvalSending to clients
DID YOU KNOW?

An agent that both sends and measures can pollute its own data: a pre-send check of the signing link was logged in okdoc as "the client opened and viewed", before the client had received anything.

A large organization called me this week about a series of workshops for its teams. Like every call I take, it was recorded, transcribed and filed straight into the CRM. From the moment I typed "send" to the moment the quote landed in the client's inbox and WhatsApp, less than two minutes passed. And that is not the interesting part.

The interesting part is everything that happened before "send". The agent listened to the call recording, pulled out what was agreed, cloned my standard quote design in Canva and updated the price, uploaded the contract for e-signature with every field in the right place, and drafted the email and the WhatsApp message for my approval. I read it, changed one word, and approved.

This guide shows how to build an agent like that, step by step, with tools you probably already use.

TL;DR:

  • What the agent does: reads the call from your CRM, clones a quote in Canva, uploads a contract for signing in okdoc, and drafts the email and WhatsApp.
  • What you need: Claude, connectors (MCP) for Canva, Gmail, your CRM and okdoc, and a Green API account linked to your business WhatsApp.
  • Payment: optional. Sumit, Stripe or PayPal connected to okdoc, and the client pays right after signing.
  • The one rule: no message reaches a client until you approve the wording.

What does the agent do, end to end?

  1. Reads the lead's call from the CRM: who decides, the scope, the price that was quoted, the discount that was promised.
  2. Clones your standard quote design in Canva and updates the client name, the contents and the price.
  3. Exports the quote to PDF and uploads it to okdoc as a contract for signing, with fields for name, company ID, date, stamp and signature. Optionally, it adds payment right after signing.
  4. Drafts an email and a WhatsApp message, and waits for your approval.
  5. After approval: sends the email through Gmail and the WhatsApp from your business number.
  6. Moves the lead in the CRM to "quote sent" and schedules a follow-up.
  7. Every morning: checks okdoc for who opened, who read to the end, who signed and who went quiet, and hands you a short list of what to do today.

What do you need before you start?

  • Claude: Claude Code or the Claude desktop app. That is where the agent runs and where every tool gets connected.
  • A Canva account with one quote design, plus the Canva connector (MCP).
  • Gmail and the Gmail connector (MCP).
  • A CRM the agent can read your lead calls from, through MCP or an API. Without a transcript the agent guesses, and an agent that guesses prices is a recipe for trouble.
  • An okdoc account with an API key, plus the okdoc connector (MCP).
  • A Green API account linked to your business WhatsApp. That is what makes messages go out from your number and not from a stranger's.
  • Optional: a payment provider (Sumit, Stripe or PayPal) connected to okdoc, if you want the client to pay as soon as they sign.

If MCP is new to you, think of it as a standard socket that lets Claude plug into an outside tool and act inside it: read, create, update. Every tool on the list above connects this way. For the full picture, see how to work with MCP.

Step 1: One quote design, built once

Don't design a new quote for every client. Build one good design and let the agent clone it.

Already have a Canva quote you like? That is your template. If not, build a multi-page design once:

  • A cover page with "Prepared for:" and the client's name.
  • A page about your business and experience.
  • A contents page (what the client gets).
  • A price table: one row per item, a separate row for the discount, and a total row.
  • A terms page.
  • A signature page with clear lines: full name, company ID, date, authorized signatory, stamp and signature.

A tip that saves a lot of pain: give every quote a fixed name pattern, such as "date for client name - quote". That way the agent always finds the latest one and clones from it.

Step 2: Connect Canva

In Claude, open Settings, go to Connectors, and connect Canva. Once connected, the agent can:

  • find your latest quote,
  • duplicate it,
  • replace text on a specific page (client name, contents, prices),
  • and export the result to PDF.

Worth knowing: if a text box is locked in the template, the agent cannot change it. Lock only what truly must not change.

Step 3: Connect Gmail

Same place, same flow: connect Gmail through Claude's connectors. From now on the agent can send email from your account with the PDF attached. It goes out from your address and stays in your Sent folder like any other email.

Anthropic's official videos: how to connect your tools to Claude with connectors, and what MCP is

Getting started with connectors in Claude.ai

From the official description: learn how to supercharge Claude by connecting the tools you already use. The video shows how to set up connectors that give Claude access to your files, apps and workflows, which is exactly the screen where you connect Canva and Gmail in steps 2 and 3.

  • Where the connectors screen lives in Claude's settings.
  • How to connect an outside tool and grant it access.
  • How Claude uses a connected tool inside the conversation.

Anthropic · December 11, 2025

Why we built, and donated, the Model Context Protocol (MCP)

From the official description: Anthropic's Stuart Ritchie speaks with co-creator David Soria Parra about building the Model Context Protocol (MCP), the open standard that connects AI to external tools and services, and why Anthropic donated it to the Linux Foundation.

  • What MCP is and the problem it solves (from the start).
  • The USB-C analogy: one socket for every tool.
  • Advice for non-developers (around 32:53).

Anthropic · December 11, 2025

Step 4: Connect the CRM so the agent hears the call

This is the step that turns the agent from a form filler into something that actually works for you.

The agent needs three things from the CRM:

  1. Lead details: name, organization, phone, email.
  2. The call recording or transcript, plus a summary if there is one.
  3. The notes logged on the lead.

From the call it extracts: who decides, how many participants, the format, the price quoted on the call, the discount promised, and how the client wants to receive the quote (email, WhatsApp, a meeting).

If your CRM has an MCP server, connect it like the others. If it only has an API, ask Claude Code to build a small connector that reads the lead and the transcript. And if the recording has not been transcribed yet, the agent can transcribe it before moving on.

My rule, and I recommend adopting it: listen to the call first, price second. No guessing the price, the scope or the discount.

Step 5: okdoc, an API key and signature fields

okdoc is an e-signature platform for documents. Open an account and create an API key in the settings. That key connects two things:

  • The okdoc MCP, through which the agent reads and manages documents: the document list, each document's status, who is reading right now, reminders, and today's follow-up list.
  • The PDF upload API (/api/v1/documents/upload). It takes the quote file, the signer's details, and the position of each field on the signature page.

Field positions deserve a moment. Each field is defined by page and relative position (0 to 1, from the top left corner), for example:

FieldPagexyWidthHeight
Full name60.490.3280.290.042
Signature60.0970.6520.2150.065

Measure the positions once against your template's signature page and save them in the agent's instructions. Before every send, the agent draws the rectangles on an image of the page and checks that each field sits on its line. Changed the template? Measure again.

Step 6: WhatsApp from your business number, through Green API

In Israel, clients open WhatsApp far faster than email, and that holds in many other markets too. So the quote goes out on both channels.

To send from your business number, you need a Green API account (the full setup is in our guide to connecting Claude Code to WhatsApp with Green API):

  1. Sign up for Green API and open an "instance" (a connection).
  2. Scan the QR code from your business WhatsApp, exactly as you would for WhatsApp Web.
  3. You get an instance ID and a token. Store them in the agent's settings file, not in the instructions and not in the chat.

If you serve several businesses, each one needs its own instance linked to its own WhatsApp. Otherwise one client's messages go out from another client's number.

Two things the agent checks before every send:

  • That the instance is linked to the right number. A one-second check that prevents a message from the wrong phone.
  • What has already been said in the chat. If the client already got a message today, don't send the same thing again.

Step 7: Payment right after signing (optional)

The contract is signed. Now the client needs to pay, and usually that means another week of "did I send you the invoice?". okdoc lets you join the two steps: the client signs, and pays on the same screen.

Connect one payment provider. In okdoc's payment settings, enter your provider's keys. This is done in the interface, not through the agent, because these are financial keys, and each account has one provider connected at a time. Live providers today:

ProviderBest forNotes
SumitIsraeli businessesIssues a tax invoice/receipt automatically
StripeInternational clientsILS, USD and EUR
PayPalIsrael and abroad

Coming soon: Grow (Meshulam, including Bit), PayPlus, Cardcom and Tranzila. There is also a test mode, so you can try a charge before connecting the live account.

Four ways to collect. When the agent creates the contract (through the MCP or the upload API), it adds a payment setting:

  1. Card charge (charge): the client enters a card on the signing page, okdoc charges it through your provider and marks the document "paid". You set the amount, currency and description.
  2. Payment link (link): any link you already have, from Meshulam, Cardcom, Stripe, PayPal or anywhere else. The client sees it right after signing.
  3. Bank transfer (bank): your account details are shown after signing.
  4. Link and transfer together (both).

You can also set when the payment request goes out (due_days): at signing, or a number of days later, for example 30 days for net-30 terms.

Two things to know:

  • The card amount is what the card is actually charged. If the quote is 10,000 ILS plus VAT, the card must be charged 11,800 ILS (including 18% VAT). Write that into the agent's instructions, or it will charge without VAT.
  • Not every client pays by card. Public bodies and large organizations usually work with a purchase order and a bank transfer. So don't add a charge automatically: the agent asks based on the client type, and for a large organization offers a bank transfer or no payment at all.

What the agent sees afterwards. Through the okdoc MCP it knows which documents are signed and waiting for payment, which payments came in (amount, payer and date), and total revenue. For bank transfers it can also mark a document "paid" once you confirm the money arrived.

Step 8: Write the agent its recipe

Now tie it all together. In Claude Code, write an instruction file (a Skill) that describes the process in plain language. This is the skeleton I work with:

# Quote from a call

1. Find the lead in the CRM and read the transcript of the latest call.
   Extract: decision maker, scope, format, quoted price, promised discount, preferred channel.
2. In Canva: find the latest quote, duplicate it, and update:
   page 1 = client name, page 3 = contents, page 4 = price table.
   Every price + VAT. Discount = a separate row.
3. Export to PDF. Upload to okdoc with the fields on page 6 (position table attached).
   Verify on an image that every field sits on its line.
4. Draft an email and a WhatsApp message, and show me the full text.
5. Send only after I write "send".
6. Update the lead: status "quote sent", a note with the price and link, follow-up on day 2.
7. Payment: private client or small business = card charge, amount including VAT.
   Public body or large organization = bank transfer, or no payment in the contract.

From then on, all you need to tell the agent is one line: "I spoke with X, send them a quote."

Step 9: The rule you never skip

No message goes to a client before a human approves the wording.

The agent prepares everything: the quote, the contract, the email and the WhatsApp. But the last button stays with you. It takes ten seconds of reading, and it is the difference between an agent that saves you an hour and an agent that embarrasses you in front of a client.

Step 10: An automatic morning check

This is where the okdoc MCP earns its place. Every morning the agent asks okdoc a few questions:

  • What should I do today? okdoc ranks the follow-ups: who opened the quote several times and didn't sign, who signed and hasn't paid, who read and disappeared, and who never opened it. It also tells you what time of day your clients usually respond.
  • How much money is waiting for a signature? The total of deals sent and not yet signed.
  • Who signed and didn't pay? The agent finds documents waiting for payment and suggests a reminder for each client.
  • Who is reading right now? Who is inside the document at this moment, for how long, and how far they scrolled.

From there the agent sends you a short morning note: "3 quotes were opened and not signed, here is who and what to say to each." You can also ask it to send a signing reminder, and again, only after approval.

Set this up as a scheduled task in Claude Code, for example every day at 08:30.

The moment it almost went wrong

The first time I ran the process, I asked the agent to make sure the signing link worked before sending it to the client. It opened the link, saw it was fine, and moved on.

Only on the next check did I see what had happened: okdoc had logged that the client opened and viewed the contract. The client hadn't received anything yet. The agent's check had counted as a view, and the next morning's report would have shown "client opened the quote and didn't sign". I might even have called them about it.

The fix was simple: we deleted the fake view, and the instructions now say explicitly that the link is checked without opening it the way a client would. But the lesson matters more than the fix: an agent that both sends and measures can pollute its own data. Every action it takes needs to be checked from the angle of "what does this do to tomorrow's numbers?".

What this means for your business

Most businesses don't lose deals on price. They lose them on time: a quote that goes out three days later instead of an hour later, a contract sent without e-signature that gets stuck at the printer, and a follow-up nobody remembers to do.

An agent like this closes all three gaps:

  • Speed: the quote goes out the same day, while the client is still warm.
  • Accuracy: the price comes from the call itself, not from memory.
  • Follow-up: every morning you know who read, who signed and who needs a call.

And most importantly, you don't give up control. The agent does the work, and you approve.

Checklist before you switch it on

  • One quote design in Canva, with a clear signature page.
  • Canva and Gmail connected to Claude.
  • The agent reads calls and transcripts from the CRM.
  • An okdoc account, an API key, and the okdoc MCP connected.
  • Field positions measured and checked on an image.
  • Green API linked to your business WhatsApp, keys stored in a settings file.
  • If you collect at signing: a payment provider connected in okdoc and tested in test mode.
  • The instructions say: nothing is sent without approval of the full text.
  • A scheduled morning check.

Common mistakes

  • Letting the agent guess the price. If there is no transcript, the agent asks you. It doesn't invent.
  • Forgetting VAT. Spell it out in the instructions: every price plus VAT, and the card charge includes VAT.
  • Keeping keys inside the instructions. okdoc and Green API keys live in a separate settings file, not in text the agent reads in every session.
  • Changing the Canva template without remeasuring the fields. The fields end up floating in the air and the client signs in the wrong place.
  • Sending the same message twice. The agent checks what has already been said in the chat before every send.

The bottom line

Two minutes from "send" to the client is nice. But the real value is that this quote was right: the price from the call, the contents the client asked for, the fields in place, and the follow-up already on the calendar. This isn't an agent that writes fast. It's an agent that doesn't forget.

Want an agent like this for your business? I help businesses and organizations implement AI agents like this one, from scoping until they run on their own.

More in this cluster: A Claude agent that collects invoices for your accountant · AI agents for sales · AI workshops for organizations · Video courses on AI TV

Sources

Yaakov Tzedek, AI lecturer, consultant and implementer for organizations, and leader of AI, GEO and AI-implementation communities with more than 150,000 people.

Frequently asked questions

Was this article helpful?
Share:WhatsAppLinkedInX
Yaakov Tzedek
WRITTEN BY

Yaakov Tzedek

An Israeli AI lecturer, consultant and implementer who has supported 100+ organizations in AI implementation and lectured for 200+. Official content partner of Meta, Google, Canva and TikTok, featured on Israel's Channel 13.

More about Yaakov →