MONICA ACADEMY - EPISODE 3
Why do Messenger AI agents make up prices?
Build a Facebook Messenger AI agent in n8n with free tools, then add the four rules that keep it from making up prices and promises.

The full episode, with copy buttons: https://immonica.com/academy/messenger-ai-agent


WHAT'S IN THIS KIT

00-START-HERE.txt                             This note.
messenger-ai-agent.json                       The n8n workflow, 18 nodes. Import it into n8n; it has no keys or tokens inside.
messenger-ai-agent-agent-instructions.txt     The agent's instructions with the four rules. Fill in your own information.
messenger-ai-agent-meta-setup-checklist.md    Every step in Meta for Developers: app, roles, webhook, page, token, App Review.
messenger-ai-agent-prompts.txt                The "Make it yours" of each of the 10 steps.
messenger-ai-agent-commands.txt               Step 1: start n8n and open the Cloudflare tunnel (the commands.txt the prompts mention).
messenger-ai-agent-playbook.pdf               The whole episode page, ready to print.


THE 10 STEPS, ONE RULE EACH

1. Start n8n and give Meta an address. Whatever sends you messages needs a public, secure address.
2. Create the Meta app with Messenger. Decide who can reach your agent before you connect it.
3. Pass Meta's check and connect your page. Only answer requests you can prove are yours.
4. Let only real messages in. Your agent answers people, never its own echo.
5. The agent's brain, and memory per person. Every conversation belongs to one person; never mix two.
6. Send the reply where the person reads it. Check the reply where the customer sees it, not inside your tool.
7. Answer only with your real information. If it isn't in your information, the answer is “I'll check with the team,” never an invented price, hour or promise.
8. A name and a contact before any promise. Nothing is booked or promised until you know who you're talking to.
9. Hand off to a person. A handoff only counts if a person gets it and the agent goes quiet.
10. Decide when strangers can write. Open the door only after steps 7 to 9 work.


HOW TO START

1. Run the two commands in messenger-ai-agent-commands.txt, each in its own terminal: n8n, then the tunnel.
2. In n8n, create a workflow, choose Import from File in its menu and pick messenger-ai-agent.json.
3. Add the three credentials: Gemini (your Google AI Studio key), "Facebook page token" (Header Auth:
   name Authorization, value Bearer + your page token) and "Team email (SMTP)".
4. Fill in the blanks: YOUR_VERIFY_TOKEN in "Is it Meta's check?", the two addresses in "Email the team",
   and your real information in the AI Agent's instructions (the same text as messenger-ai-agent-agent-instructions.txt).
5. Publish the workflow, then follow messenger-ai-agent-meta-setup-checklist.md in Meta for Developers.
6. Keep the app in development mode until the price, contact and handoff rules all work on your own page.

On the free Gemini tier, Google can use what you send to improve its products. Read the terms before customer data goes through it.

The first six steps follow Valerian Valkin's tutorial (youtu.be/LdSgAxdi160). Not affiliated with Valerian Valkin, Meta, n8n or Google.
AI replies change from run to run. Free.
Monica Academy: https://immonica.com/academy
