Apple Shortcuts
Shortcuts is the iPhone tool launched in 2018 to create automations on your phone. Below we'll see how you can use it to automate logging your expenses in Clatri from two sources: Apple Pay and your bank's notifications. Your bank's text messages come in this way too, as a notification from the Messages app.
The quickest way is to import the Log transactions template (also from Clatri: Settings › Create shortcut › Import shortcut template). When you import it, Shortcuts asks for your bank's apps. If you use the SMS path, afterwards replace the template's card endings in that branch with your own. The rest of this guide explains how it is built, in case you want to adjust it or build it by hand.
The template uses the Notification trigger, which arrived with iOS 27. On iOS 26 or earlier it imports broken ("Unknown variable" in red). There you can log your payments with Apple Pay by building the Wallet trigger by hand (below) and your bank's emails with Clatri's email integration. The App trigger only detects when an app is opened or closed: it doesn't read notifications.
- Bank emails: use Clatri's email integration instead of Shortcuts. It works on any device and opens password-protected statements.
- Bank text messages: log them from the notification the Messages app shows, as the template does, not with the "When I receive a message" trigger. That trigger doesn't reliably recognise short-code senders (like Bancolombia's 85540) and the automation never runs.
To build it by hand, open the Shortcuts app and tap + to create a new automation. If you have iOS 27 on an iPhone 15 Pro or later, the app will probably let you create your automation just by describing it with a prompt; either way, here we'll see the manual way to do it.
You need to be signed in to Clatri and have an active subscription. Open Clatri once after installing or updating it: that connects the automations to your account.
How to read an automation
An automation has two parts, and on screen each one is a box:
- The trigger ("When…"): what has to happen. For example, paying with a card or receiving an SMS.
- The actions: what the iPhone does when it happens. For example, sending the payment details to Clatri.
Log transactions⌄
Record transaction from Apple Pay2×1 Trigger. You recognise it by the icon of the app behind it: the blue Wallet card, the green Messages bubble, the red notification bell or the Mail envelope.
2 Action. Clatri's actions carry the Clatri icon. The › arrow expands their fields.
The grey boxes with the branch icon are If, Otherwise and End If: they decide which action runs. The orange box with an x is Set Variable.
Finding a trigger
Tap +. A search sheet opens with the Automation filter. Triggers are grouped: under Apps you'll find Wallet and Notification.
1 Wallet: when you pay with a Wallet card.
2 Notification: when an app, such as your bank's, sends you a notification. This trigger arrived with iOS 27.
Text messages do not use the Message trigger: they come in through Notification, choosing the Messages app. Email exists, but for email we recommend Clatri's email integration.
An automation can have several triggers. The word or appears between them: any one of them is enough.
Outputs: what each trigger brings
When a trigger fires, it hands over an output: a bundle with the details of what happened. That output shows up as a blue pill with its icon, and you use it to fill in the actions' fields.
| Trigger | Output | What it contains |
|---|---|---|
| Wallet | Transaction | Card or Pass, Merchant, Amount, Name |
| Notification | Notification | App, Title, Body… In a Messages notification, Title is the sender (for example, 85540) and Body is the text message. |
| Subject, Content, Sender, Recipients, Attachments |
When you tap a field and choose Select Variable, the iPhone lists the available outputs. Tapping a pill opens its Get menu so you can pick the part you want:
On the left, the field receives the merchant. On the right, the amount. Never type an amount, merchant or card by hand: that way each payment sends its own data.
Variables: when to use them and when not
You almost never need to create variables. The trigger's output already is a variable: the iPhone creates and names it for you (Transaction, Message, Notification, Email). Connecting a field straight to that output is the norm, even when you use several of its parts in the same action.
There is only one case where you do need Set Variable: when you need a part that sits inside another part. An output's Get menu only goes one level down.
- Transaction
- Merchantone level: direct
- Card or Passone level: direct
- Amountnumber and currency together
- Currency Codesecond level: the Transaction menu does not reach it
- Currency Amountsecond level: the number
- Name
Amount is not a plain number: it is an amount with its currency. Clatri needs both separately, and the Transaction menu won't let you reach them. The fix is to store Amount in a variable of its own. That variable sits at the first level, and its menu does show Currency Code and Currency Amount:
1 There are two "Currency Amount" rows. For the number, use the lower one, below Currency Code. The upper one is the full amount with its currency. For the currency, choose Currency Code in this same menu.
In short:
| If you need… | Do this |
|---|---|
| One part of the output (Merchant, Content, Title, Body, Subject…) | Connect it directly. No variable. |
| Several parts of the same output | Connect each directly to its field. No variable. |
| A part inside another part (the currency inside Amount) | One Set Variable holding the outer part; then pick the inner part from the variable's menu. |
That is why this guide has two variables: WalletAmount, for Apple Pay, and NotificationAppName, to know which app sent the notification. Emails need none.
Clatri's actions
Clatri offers one action per source. They are all called Record transaction from… and each one already knows where the data comes from: there is no source to choose.
Record transaction from Apple Pay×
Record transaction from SMS×
Record transaction from notification×
Record transaction from email×| Action | What Clatri does |
|---|---|
| Record transaction from Apple Pay | Receives the exact amount, currency, merchant and card, and records the expense. Last 4 digits is optional: leave it empty unless Clatri doesn't recognise the card. |
| Record transaction from SMS | The assistant reads the whole text message and records what it was: a purchase, a withdrawal, an income, a refund, a transfer or a payment. If it doesn't know which account it came from or what it was, it asks you in the chat. It is fed from the Messages notification: Content = Body, Sender = Title. |
| Record transaction from notification | Same as SMS, reading title and body together. In the chat it shows as "Notification from Nu". |
| Record transaction from email | Shows the email in the chat, imports its PDF attachments (up to 5, 20 MB in total) as documents, and the assistant reads body and attachments together. For email we recommend Clatri's email integration instead of this action. |
On an iPhone set to Spanish they appear as «Registrar transacción desde Apple Pay», «…desde SMS», «…desde una notificación» and «…desde un correo». Ask Clatri is for talking to the assistant and is not used in these flows.
Not everything that arrives is a movement. If the message has a due date, a minimum payment, a balance, a credit limit or a rate change, Clatri updates that card, account or debt, or tells you. A bank offer isn't simply dismissed: Clatri compares it with your debts, income and savings and tells you whether it's worth it. Verification codes are never stored.
Writing a comment
All four actions can ask you for a comment about the movement. It's optional: if you don't turn it on, everything works as before.
It gives Clatri the context the bank leaves out. A Bre-B transfer only carries a key and a name; with the comment "InDriver ride", Clatri records it as transport without asking you. The comment shows in the chat, under the bank's message.
To have Clatri ask you every time a movement arrives:
- Open the automation and expand the Clatri action with the › arrow.
- Turn on Ask for a comment. The Comment field appears below it: leave it empty so Clatri asks you each time.
- Turn off Show When Run: in Clatri's actions it only shows the "Transaction received for processing" notice when it finishes.
Record transaction from notification×1 Ask for a comment on; Comment left empty.
2 Show When Run off.
When the movement arrives, Clatri asks what it was and shows the start of the message so you know which one it is:
"Chase: You sent $25.00 from account ending 1234 to…"
1 Write what it was, for example "InDriver ride", and tap Done. If you don't want to add anything, leave it empty or tap Cancel: the movement still reaches Clatri, without a comment.
In the Clatri chat, your comment sits under the bank's message, and the assistant's reply takes it into account:
1 Your comment: what you typed in the prompt, as is.
With Ask for a comment off, the action runs on its own without interrupting you. You can turn it on only in the action of the path that raises the most questions, for example your bank's notifications. If you don't see these options, update Clatri.
If the bank says you transferred money, Clatri does not automatically treat it as a move between your own accounts: it can also be a payment, an expense or a loan. It is only an internal transfer if the other account is yours, because it matches a number you saved or because you say so. If Clatri doesn't know, it asks you in the chat. When you confirm that an ending belongs to your account, it saves it to recognize the next messages.
The complete automation, step by step
This example is the template: a single automation with two triggers.
- Apple Pay, with the cards that don't report through another path.
- Notifications from two apps: Messages, for the bank's text messages (in the example, Bancolombia, which texts from 85540), and Nu.
When a trigger fires, only its output carries data; the others stay empty. With If … has any value and a condition on the text, the automation knows which path to take:
1. The triggers
Log transactions⌄
Messages 1 In the Wallet trigger, select only the cards that don't come in through another path. Here it's Apple Cash, because Nu already comes in through its notification and the bank's cards through text messages. If a card is in two triggers, every purchase is logged twice.
2 Add Messages with the + next to your bank's app. Don't put a filter on the trigger: with two apps, a "Bancolombia" filter would drop Nu's notifications. The filter goes inside, in the first If of the text message path.
Leave Automation on so it runs by itself without asking you. Notify can stay off: Clatri tells you the result on its own.
In Settings › Notifications › Messages, set Show Previews to Always. If previews only show when unlocked, with the iPhone locked the notification arrives without text and the automation doesn't find "Bancolombia".
2. The text message path
Log transactions⌄
Record transaction from SMS×1 If Notification has any value: it only enters when the trigger was a notification. It must have a single condition; delete any empty "Condition" row.
2 Separates the bank's text messages from the other notifications. If your bank isn't Bancolombia, change the word to one its text messages always include.
3 Filters the cards you want to log by text message. The endings in the example are made up: use yours. To build this If: add the first condition, tap + at the end to add the second, and change All to Any.
4 In a Messages notification, Body is the text message and Title is the sender.
With is, the whole text message would have to be exactly "*0042", and that never happens. The right condition is contains.
3. The other notifications and Apple Pay
Log transactions⌄
Record transaction from notification×
Record transaction from Apple Pay×1 The trigger also listens to Messages, so this If keeps other text messages (verification codes, promotions) from being sent to Clatri. It compares NotificationAppName, the variable at the start of the automation, which holds the notification's App. Don't use the notification's Name: it isn't the app's name.
2 The amount variable, as explained above.
3 Amount = WalletAmount → the second Currency Amount. Currency Code = WalletAmount → Currency Code. Merchant and Card go straight to Transaction; Card is Card or Pass, not the whole Transaction.
To add an action, use the search field at the bottom of the editor and type Clatri. For If, Otherwise and Set Variable, type If or Set Variable.
Turn off Show When Run in the Clatri actions: it only shows a notice when they finish. To write a comment, turn on Ask for a comment. Save and reopen the automation to check the connections: tapping each pill should show the right option checked in its Get menu.
4. Emails with statements
For your bank's emails, use Clatri's email integration: you forward or redirect the emails to your Clatri address and it works on any device, password-protected statements included.
Shortcuts also has the Email trigger with the Record transaction from email action, but it only runs on the iPhone and depends on the Mail app.
One source per card
Each purchase must reach Clatri through one path only. If the same payment comes in through Apple Pay and through the bank's notification, it is recorded twice.
| Card or account | Recommended path |
|---|---|
| Cards whose bank sends SMS | Messages notification, filtering their endings |
| Cards whose bank sends notifications (for example, Nu) | Notification. It also covers physical-card and online purchases, not just Apple Pay. |
| Cards with no useful SMS or notifications (for example, Apple Cash) | Apple Pay |
| Accounts connected with Plaid | None: they already arrive on their own. Don't select them in the triggers. |
Check that it works
Make a real purchase and open the Clatri chat. You'll see a card with the source ("Apple Pay", "Messages", "Notification from Nu" or the email) and, below it, the assistant's reply. Clatri also sends you a notification that sums up that reply: what it recorded or the question it needs you to answer.
Don't tap ▶ to test. A manual run has no real purchase and can create a new event.
"Received for processing" doesn't yet mean "expense recorded": the result is in the chat. If Clatri needs to know which card or account it was, it asks you there.
If an error appears
| Message | What to do |
|---|---|
| Connect the message content in this action | The Content field is empty. Connect it to the trigger's output. |
| Clatri did not receive a payment amount / currency | Check Amount and Currency Code: they must come from WalletAmount. Nothing was sent. |
| Open Clatri once to connect automations to your signed-in account | Open Clatri while signed in. It also happens when the connection expires. |
| Event saved on this iPhone, awaiting delivery | There was no connection. Open Clatri so it resends it. Don't run the action again: you would create another event. |
| Clatri accepts up to 5 PDF attachments and 20 MB per email | The email has too many attachments or they are too large. |
| Couldn’t communicate with a helper application | It is an iOS failure. Check the Clatri chat before repeating anything. |
Signing out or switching users discards the events that were pending on this iPhone.
Details
How Clatri picks the card, account and entity
Clatri looks for the received ending among your user's active cards. An identified card also determines its entity. It doesn't infer the card just because it says Visa or Mastercard.
Debit: if all candidate cards are debit, in the same entity, on the same account and in the same currency, Clatri records the expense on that account even if it can't tell the physical card from the virtual one. It never invents the last four digits.
Credit: always needs a specific card. If in doubt, Clatri asks in the chat before recording.
Wallet may hand over the ending of the device's virtual card, which differs from the physical one. If Clatri doesn't recognise your card, type its last four digits in Last 4 digits in an automation that uses only that card. Never fix digits in an automation that accepts several cards.
Purchases in another currency
The currency Wallet hands over is the purchase currency. Clatri converts the amount to the card's or account's currency using a market rate from the time of payment, and marks it as an estimated conversion: the bank may apply another rate or fees. You can correct the amount and tap Confirm final amount on the expense. If the payment already comes in the card's currency, there is no conversion.
Delivery, retries and notices
Each event is first saved on the iPhone and then sent with a fixed identifier. Without a connection it is retried when you open Clatri; a resend never creates a second expense. Email PDFs wait on the iPhone, excluded from backups, and are deleted once they reach the server.
Clatri sends a notification written from the assistant's reply: what it recorded, with its amount and merchant, or what it needs to know. It never shows card or account numbers, passwords or codes. If you asked Clatri to keep your data inside the chat, the notice only says there's a reply.
Several identical purchases on the same day (for example, metro fares) are separate purchases and are recorded separately.