You don't need to know how to code to automate sales with PixGo. In 2025-2026, tools like ChatGPT, Claude and Cursor became copilots that write code for you. You describe what you want in plain language, ChatGPT writes, you run, and adjust together. This article shows a real example: customer sends WhatsApp message → your system generates PixGo QR automatically → customer pays → you get notified. No programmer, in a few hours.

TL;DR
  • ChatGPT (or Claude) writes the code — you just need to describe what you want well
  • Start simple: 1 customer, 1 product, linear flow. Evolve later.
  • You need: PixGo API key + WhatsApp Business service (Evolution API or Z-API) + cheap server (Replit, Railway, VPS R$15/mo)
  • Realistic time: 4-8 hours for first working version
  • Monthly cost: ~R$30-100 (server + WhatsApp API)

The example we'll build

We'll automate this flow:

  1. Customer sends "I want to buy" to your WhatsApp Business
  2. Your system replies with product catalog
  3. Customer picks e.g. "1" (Product X — R$100)
  4. Your system calls PixGo API, generates R$100 QR Code
  5. WhatsApp sends QR to customer + payment link
  6. Customer pays in their bank app
  7. PixGo sends webhook to your system
  8. Your system notifies customer: "Payment confirmed! Access granted at X."
  9. You get notified of the sale
Diagram: person chatting with AI assistant who generates a payment QR Code
ChatGPT as a bridge between your idea in plain language and working code.

Plug PIX charges into your system with an API and webhooks. See the PixGo PIX API.

Create account

Before starting — what you need

1. ChatGPT account (Free works, Plus is better)

Visit chat.openai.com. Free version works, but Plus (US$20/mo) has smarter GPT-4 and runs Code Interpreter (tests code directly in chat).

Equally good alternative: Claude.ai (also free version available).

2. PixGo API Key

It comes from the API Keys menu (pixgo.org/api-keys) → Request access. See the full API guide if it's your first time.

3. WhatsApp Business API service

You need an intermediary that connects your system to your business WhatsApp. Options:

  • Evolution API — free (open source), you host. More technical but zero cost.
  • Z-API — paid (~R$80/mo). Simpler, Portuguese support.
  • Official Meta WhatsApp Business API — robust but needs Meta approval + higher value

To start, I recommend Z-API for no-hassle (R$80/mo solves it), or Evolution API if you're up for hosting (free but needs server).

4. Where to run the code

You'll need an always-on server. Cheap options:

  • Replit (replit.com) — free to test; paid R$30-50/mo to stay on 24/7
  • Railway (railway.app) — US$5-10/mo, direct GitHub connection, auto-deploy
  • VPS Hostinger / Contabo — R$15-30/mo, more technical but all yours

Recommendation to start: Railway or Replit. You paste the code ChatGPT wrote, they host it, give you a public URL.

How to talk to ChatGPT so it really helps

This is the key point. ChatGPT writes amazing code if you're specific. See the difference:

Bad prompt: "Build a WhatsApp bot that sells with PixGo"
Result: generic code, placeholders, doesn't understand your flow. Will give you a headache.
Good prompt: see template below. Result: functional code, with your specific data, ready to paste.

Prompt template that works

Act as my programmer. I'll describe a system and you'll write the
complete code in Node.js (Express).

CONTEXT:
- I'm a digital seller, I sell online marketing courses
- I have 3 products: Course A (R$197), Course B (R$297), Bundle (R$397)
- I want to sell via automated WhatsApp

INTEGRATIONS I HAVE:
1. PixGo API: key pk_XXXX, base URL https://pixgo.org/api/v1
   - Endpoint POST /payment/create creates QR Code (requires receiver_cpf: payer's CPF/CNPJ)
   - Webhook arrives on payment.completed when customer pays
   - HMAC-SHA256 with same API key

2. Z-API (WhatsApp): instance YYYY, token ZZZZ
   - Receives messages via webhook
   - Sends messages: POST /instances/{instance}/token/{token}/send-text
   - Sends images: POST /instances/{instance}/token/{token}/send-image

DESIRED FLOW:
1. Customer sends "menu" → I reply with numbered list of 3 products
2. Customer sends "1", "2" or "3" → I ask for their CPF/CNPJ → I call PixGo API, generate QR
3. Send to customer: QR image + Copy-and-Paste text + link
4. When payment confirms (PixGo webhook), send "payment ok" msg
5. Store each sale in local SQLite

GIVE ME:
- Folder structure
- package.json with dependencies
- Complete code for each file (no placeholders)
- Install and run commands
- How to host on Railway afterwards

With a prompt like this, ChatGPT generates 80-90% of working code. The remaining 10-20% you adjust together in the next message.

Other automations you can ask ChatGPT for

After the basic WhatsApp + PixGo flow, you can go far:

  • Recurring billing: cron that runs every 1st of the month, generates QR for each subscriber, sends WhatsApp. See dedicated article: Recurrence via API.
  • Spreadsheet integration: each sale becomes a row in Google Sheets (via Google API). Useful for accounting.
  • Personal notification: when customer buys, send message to YOUR WhatsApp (Z-API allows). Know instantly.
  • Dynamic catalog: customer sends "products", you pull from your DB/spreadsheet, return formatted.
  • Digital content delivery: paid? Sends drive/membership area link automatically.
  • Simple anti-fraud: new customer can only buy up to R$100 first time. Block if way above.
  • Automated support: automatic FAQ replies, only escalates to you when topic is new.
  • Telegram integration: same logic, different channel. Telegram Bot API is even simpler than WhatsApp.

Realistic costs and limits

Item Cost/mo Note
ChatGPT PlusUS$20 (~R$110)Optional — free works to start
Server (Railway)US$5-10 (~R$30-60)Free tier limited, paying is worth it
WhatsApp Z-APIR$80-120Per WhatsApp number
PixGo fee2% + R$0.50 per D+1 delivery (+ R$1 on sales from R$10 to R$49.99)Variable
Fixed totalR$110-300Independent of volume

For positive ROI: bill at least R$1,500/month on automation.

What NOT to expect from ChatGPT

  • It's not magic: you still need to understand your business flow. ChatGPT writes code, but the rule is yours.
  • Doesn't replace review: code that touches money needs serious testing. Make real test purchases.
  • Doesn't handle security alone: you need to store API Key right (env vars, secrets), validate HMAC, sanitize inputs. Ask ChatGPT specifically about security.
  • Won't magically scale: for 100 sales/month any code works. For 10,000 sales/day needs architecture thinking — then worth hiring a dev.
  • Doesn't know your product: ChatGPT writes the plumbing, but choosing "what to sell, how, to whom" is yours.

FAQ for those who never coded

Do I need English?

No. ChatGPT understands and replies in Portuguese perfectly. Some code variables stay in English (amount, customer) but you just copy, don't need to translate.

Will I really pull this off?

If you can: 1) read, 2) click buttons on the web, 3) follow tutorials — you can. No "programming logic" needed for this usage level.

What if I break everything?

Before going to Railway, test locally. Railway has rollback (back to previous version in 1 click). And you can pause everything without losing data. Real risk is zero.

Will ChatGPT see my PixGo key?

Don't share your real key with ChatGPT. Use pk_YOUR_KEY_HERE in prompts and replace with the real value only on Railway/your server.

Can I do this with Telegram instead of WhatsApp?

Yes, even easier. Telegram has free official API (BotFather). Ask ChatGPT for the Telegram version that works the same.

What if ChatGPT gets it wrong?

It will sometimes. Paste the full error in the conversation, it corrects. 5-10 message iterations resolves most problems.

Can I sell anything this way?

Technically yes. But respect PixGo rules (no illegal product, no gambling, no prohibited items) and WhatsApp platform (no mass spam, no scams). Happy customer = sustainable.


Practical summary

  • ChatGPT/Claude write code — you describe in plain language
  • Start simple: 1 product, linear flow, evolve later
  • You need: PixGo API + WhatsApp API + server (Railway/Replit)
  • Use specific prompts with full context (template above)
  • Always test each piece before advancing
  • Realistic cost: R$110-300/mo fixed + your hours
  • Realistic time for first version: 4-8 hours

Related reading: Full PixGo API guide · Recurring billing · Error codes and debug