Skip to content

Setup guide

Log receipts with your own AI agent

Forward your payment emails and card alerts to an AI agent, and it logs them in your Monman ledger for you. Fill in the form in step 3 and this page writes the agent’s instructions. It takes about 15 minutes.

Sign in to Monman

How it works

Each payment travels top to bottom, with nothing for you to type.

Your receipts & card alertsemail · push · CSVAgent inboxyou forward, it receivesAI agentreads · skips doubles · logsMonman connectormoney.thcl.dev/mcpYour ledger“Added via Receipt Bot”
  • Where the thinking happens

What you need

  • A Monman account.
  • An AI agent that can receive email or a webhook and use a remote MCP server. For example Thought Automation, ChatGPT Automations, Claude, Cursor or Grok Bot.
  • An email inbox the agent can read. We recommend AgentMail: it gives your agent its own address, like monman-yourname@agentmail.to, and wakes the agent through a webhook when mail arrives. A Gmail label the agent can read also works.

Step 1: Connect your agent to Monman

Most agents sign in with Google. Only agents that can’t do that need an API key.

Agent can doGoogle sign-in?yesnoGoogle sign-inClaude · ChatGPT · GeminiAPI key stl_…Grok Bot & othersBearer headerMonman connectormoney.thcl.dev/mcpadd · list · update · deletesummarize · accounts · categories
  • Default path
  • Fallback

Connectors can only be added on the claude.ai website, not in the Claude apps. Works on every plan. Free allows one custom connector and has no scheduled tasks, so it runs On request only.

  1. Step 1: On the claude.ai website, open Settings → Connectors → Add custom connector.

  2. Step 2: Name it Monman and paste this URL.

  3. Step 3: Leave the options marked Detected as they are (Sign in now and Use Claude’s published identity), then click Add.

  4. Step 4: Click Connect and sign in with Google. No key needed.

Or tell your agent to connect itself.

Read https://money.thcl.dev/agent/connect?agent=claude and follow it

Check it worked: ask the agent to call list_accounts and list_categories. It should name your accounts and categories.

Ask your agent: start automation onboarding

Step 2: Send your payments to the agent

Pick the ones you have. Senders only forward raw text. The agent does all the reading.

Shopee / Tokopedia emailorder id = truthBank email alerte.g. MaybankiPhone ShortcutDanamon push → emailWebhook POSTraw text or JSONOld app CSV export≤200 rows per batchAgent inboxor webhook
  • Best source (has an order id)
  • One-off bulk import
  • Shop and bank emails: forward them to the agent inbox, or set a Gmail filter to auto-forward them. With AgentMail, point its new-mail webhook at your agent so every email wakes it.
  • Card alerts with no email (push or SMS only): use the iPhone Shortcut from step 4. It forwards the raw alert by email.
  • Webhook: if your agent platform gives you a webhook URL, POST the raw text to it. Keep its secret in the platform.
  • Old history: give the agent your old app’s CSV. It imports up to 200 rows per batch, and a batch is all or nothing.

Step 3: Fill in your setup

Your answers stay on this page. Nothing is saved or sent.

Shown as “Added via …” on every row it logs.

The address you forward receipts to.

How the agent signs in

As they appear in the app, separated by commas.

Where your payments come from

Step 4: Paste this into your agent

These are the agent’s standing instructions. They change as you fill in the form.

You keep my spending log in Monman, my expense tracking app. I forward you receipts and card alerts. For each one, add a row to my Monman ledger with the Monman connector (https://money.thcl.dev/mcp). You are already connected through Google sign-in.

Start by calling list_accounts and list_categories, and tell me which accounts and categories you see.

WHAT I SEND YOU (to monman-yourname@agentmail.to)
- Shopee order emails. Use the order number as the key: shopee:<order number>
- Tokopedia order emails. Tokopedia sends a few emails per order, so log each order once. Key: tokopedia:<order number>
- Bank email alerts. Key: bank:<email Message-ID>

HOW TO LOG EACH ONE
- Use add_transaction. Set via to "Receipt Bot" so I can see you added it.
- Amount in normal units (25000, not 2500000). Currency IDR unless the receipt says another one.
- Account: pick from Cash, Card, Bank. Never make up a new account.
- Category: pick the closest "Parent/Child" from my list. If nothing fits, ask me.
- Note: a few lowercase words, like "grab ride" or "shopee: phone case".
- Leave description empty.
- Date: the time on the receipt.
- Always set idempotency_key to the key above. If the same receipt comes twice, the second one is ignored.

SKIP THESE
- Holds and small card checks that get cancelled within minutes. They are not real spending.
- A card charge with the same amount as a shop order from the same day or the day before or after. Keep the shop order, it has more detail.

GROUP BILLS AND PAYBACKS
Some of my payments are for bills that I split with friends in a Monman Group. When I split a bill, my share lands in my own ledger. The card or bank row that you logged for the same payment would then count that bill twice. A Group Expense or a Settlement can replace your row: pass replaces, the id of your row, to add_expense, update_expense or record_settlement. Monman removes your row and keeps its facts. If the Expense or the Settlement is deleted later, your row comes back.
- Add a Group Expense only when I ask you in chat. That includes cash bills. Every Group write names its Group: find it with list_groups and list_members, and ask me when more than one Group fits.
- A match for a bank alert comes from the possible_split list in the reply of add_transaction, or from your own lookup in list_expenses. possible_split is only a hint. If it is missing or empty, look at my recent Expenses yourself.
- From a bank alert alone, when an Expense that I paid matches the payment, replace your row on your own: call update_expense on that Expense with replaces set to the id of your row. This changes only my ledger, never the Expense. A match needs a fitting amount, a fitting day and a fitting place. When you are not sure, ask me and keep your row.
- When an alert looks like a group order, such as a big restaurant bill, and no Expense matches, keep your row and ask me if it was for a group. Do not add a Group Expense.
- When I ask you to add the Expense for a payment that you already logged, call add_expense with replaces set to your row. The amount, currency, date and title come from your row, and I am the Payer. That reply has no possible_payment. A bill can be paid in more than one swipe, so call list_transactions for the day of your row and the days around it, and look for other expense rows that you logged for the same bill. Skip a row that carries a group_expense_id. For each row that is surely another swipe of the same bill, call update_expense on the new Expense with replaces set to the id of that row. When a row could be another payment, ask me and keep it.
- When I ask you to add an Expense and you have no row of yours to replace, call add_expense without replaces. When I am the Payer, the reply can list possible_payment, rows of mine that match the Expense. When an entry is a payment that you logged, call update_expense on the new Expense with replaces set to its transaction_id. When an entry could be another payment, ask me.
- For money to or from a Member of one of my Groups, find that Group with list_groups and list_members, then read get_balances and the recent Settlements in list_expenses first.
- When a Settlement matches that money, replace your row with it: call update_expense on the Settlement with replaces set to your row. Money in is an income row, and I must be the to side of the Settlement. Money out is an expense row, and I must be the from side.
- When no Settlement matches that money, keep your row and ask me. Do not record a Settlement.
- For money to or from anyone else, log the row as above.
- If you replaced a row by mistake, or I tell you it was the wrong charge, call update_expense on the same Expense or Settlement with replaces set to null. Every row of mine that it replaced comes back, and the Expense or Settlement stays as it is.

AFTER EACH ONE
Tell me in one short line what you logged, what you replaced, or what you skipped and why. If you are not sure about something, ask me instead of guessing. When I correct you, remember the rule for next time.

NEVER
- Add a Group Expense or a Settlement from an alert alone. Only when I ask you in chat.
- Delete anything except a row a cancelled charge undoes, unless I ask.

Step 5: Try it with one receipt

Forward one real receipt. The agent runs these checks, logs it, and tells you what it added.

Hold orcard check?yesSkip itnoCancel alert?yesDelete theearlier chargenoSame amount asa receipt ±1 day?yesSkip, keepthe receiptnoLog it oncewith a unique keyShows up in the ledger“Added via …”
  • Logged
  • Not logged

Open Monman and find the row marked “Added via” your agent’s name. Check the merchant and amount, the date, and the account and category.

Something off? Fix the row and tell the agent the rule in your own words, like “Grab rides go under Transport” or “ignore Google Play holds”. It follows that from then on.

Forwarding the same email twice is safe. The agent never logs it twice.

Don’t

  • Parse amounts inside the iPhone Shortcut. Forward the raw text.
  • Filter out cancel alerts before the agent sees them.
  • Log temporary holds or card checks.
  • Let the agent invent accounts or categories.
  • Use the split-bill or group tools. They are not ready.
  • Paste an stl_ key into a chat, a doc or git.