Activity
Mon
Wed
Fri
Sun
Dec
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
What is this?
Less
More
9 contributions to AI Agency Plus +
Stop burning API calls every time you test an n8n workflow (pin data)
small thing that saves a lot of time + credits when building client workflows. when you're testing step 6 of a workflow you usually end up re-running steps 1-5 every single time. that means hitting the CRM again, calling the AI model again, sometimes even sending a test email again lol. n8n lets you pin data on a node. you run it once, pin the output, and from then on the workflow just uses that saved output instead of calling the API again. you can also edit the pinned data by hand to fake edge cases, like an empty field or a weird phone format, without waiting for a real one to show up. couple things to know: pinned data only works for manual test runs, production executions ignore it. you can't pin on nodes that output binary data. and unpin before handing the workflow over so nobody gets confused by it. docs: https://docs.n8n.io/data/data-pinning/ editing pinned data: https://docs.n8n.io/data/data-editing/ do you guys pin data while building or just re-run the whole thing each time?
0 likes • 17d
@Andrew Moore usually right after the AI node yeah. that's the expensive call and the slowest one, so once the output looks right i pin it and keep iterating on the formatting/routing nodes after it. only unpin when i actually change the prompt
0 likes • 17d
feels like this pairs well with Amanda's 10 messages post. pin the AI output while you build everything after it, then when you actually touch the prompt you unpin and run the real test set
Your AI workflows are probably paying full price for the same prompt 1000x a day
quick cost thing that doesn't get talked about much in automation circles: prompt caching. most client bots send the exact same big chunk every single call. system prompt, business info, FAQ, policies, tool definitions. only the last customer message actually changes. without caching you pay full input price for that whole block every time. with caching the model provider stores that repeated front part, and later calls that start with the same text get billed way cheaper and usually come back faster too. how it works on the two big ones (as i read the docs, double check pricing for your model): Anthropic / Claude: you mark where the cache should end with cache_control. cache reads are billed at a fraction of normal input price, writing to the cache costs a bit more than normal. default cache lives ~5 min and resets every time it's hit, there's also a longer 1h option. OpenAI: it's automatic once the prompt is long enough (1024+ tokens), no code changes. you just get a discount on the cached part. the one rule that matters for both: put the stuff that never changes FIRST and the stuff that changes LAST. if you stick the customer's name or today's date at the top of the system prompt you break the cache on every call and get nothing. where i'd actually use it: - support / FAQ bots with a long knowledge block in the prompt - - agents with a lot of tools defined - - batch jobs running the same instructions over hundreds of rows (lead enrichment, review replies etc) for a busy client bot this can be a real chunk of the monthly API bill, which is nice margin if you're charging a flat retainer. docs: Claude prompt caching: https://docs.claude.com/en/docs/build-with-claude/prompt-caching OpenAI prompt caching: https://platform.openai.com/docs/guides/prompt-caching anyone already doing this on client builds? curious if you've seen how much it actually cut the bill
0 likes • 17d
one more thing that can make the cache read stay at 0: claude has a minimum prompt length before anything gets cached at all (around 1024 tokens on most models, check the table in the docs for yours). so a bot with a short system prompt just won't cache, no error, nothing. worth it once you've got a real FAQ or a bunch of tools in there
0 likes • 17d
the date at the top one is sneaky, loads of n8n agent templates put {{ $now }} right at the start of the system message. does the AI Agent node let you set cache_control for Claude, or do you need an HTTP Request node for that?
Before you change the prompt on a client's AI workflow, run it against the same 10 messages first
Something I keep running into while building a reply bot for my friend's cleaning biz: I tweak the prompt, test it on 2 messages, looks fine, ship it. Then I have no idea what it does now on the questions I didn't try. Turns out n8n has a built in fix for this called Evaluations. The light version is pretty simple. You put a handful of real example inputs in a data table (or a Google Sheet), add an Evaluation Trigger, and it runs your workflow once per row and writes the output back next to each input. So every time you change the prompt or swap the model, you rerun the same set and compare instead of eyeballing one test. What I'm putting in my test set: the normal everyday questions, the weird ones that tripped it up before, and a couple where the right answer is basically "someone will get back to you". Pulling real ones from past executions is way easier than making them up. There's also a metric based version that scores each run (like correctness, or whether it called the right tool) if you want actual numbers. I haven't gone that far yet. Docs if you want to try it: Overview: https://docs.n8n.io/advanced-ai/evaluations/overview Light evaluations: https://docs.n8n.io/advanced-ai/evaluations/light-evaluations Metric based: https://docs.n8n.io/advanced-ai/evaluations/metric-based-evaluations/ Do you test your AI workflows against a fixed set before changing them, or just run a couple and ship?
2 likes • 17d
gonna steal the idea of pulling the test set from old executions, way less work than making them up. do you keep the expected answer next to each row too, or just eyeball the outputs side by side?
2 likes • 17d
@Amanda Brown fair, two minutes is nothing. the bot inventing prices after a tone tweak is exactly the kind of thing I'd never catch eyeballing 2 messages
My pre-handoff checklist for n8n client workflows (mostly stolen from this community lol)
Was reading back through the posts here this week and noticed a lot of them are the same lesson in different clothes: the workflow running once isn't the job, it's what happens after you hand it over. So I put the bits together into one list I'm going to run through before anything goes to a client. 1. Error workflow attached, with the client name in the workflow name so the alert tells you whose thing broke (Amanda's post) 2. Published, not just saved. Since 2.0 Save doesn't push live, so check the live version is actually the one you think it is (Andrew's post) 3. Dedupe on anything that sends a message. Look up the id first, skip if it's already there. Data tables work for this now (Amanda again) 4. An off switch the client can flip, like a row in a sheet the workflow checks at the start 5. A sticky note inside the workflow saying what it does and who to ping when it breaks Error handling docs if you haven't set one up yet: https://docs.n8n.io/flow-logic/error-handling/ What would you add? I feel like I'm missing something around credentials expiring
0 likes • 17d
one more for self hosted clients: check execution data pruning. if every run saves full data the db just keeps growing quietly until the instance gets slow or falls over months later. n8n has env vars for max age / max count of executions, worth setting before you hand it over
0 likes • 17d
honestly hadn't thought about that one at all. adding it to the list, a db that gets slow over months is the worst kind of bug to trace back to the cause
Stop using Google Sheets as your n8n database, there's one built in now
For ages my go to for remembering stuff between runs was a Google Sheet. Which lead did I already message, which booking already got a reminder, that kind of thing. It works, but it's slow, the Google auth breaks at the worst possible time, and clients can open the sheet and "tidy it up" lol. n8n has Data tables built in now. It's basically a simple table that lives inside your n8n instance, and there's a Data Table node to insert, update, get and delete rows right from a workflow. No credentials, no API calls going out. Where I've found it actually useful: Dedupe. Before sending a follow up, look up the lead id. If it's there, skip. If not, send and then insert it. No more double texts when a webhook fires twice. Reminder state. Store the booking id plus a reminder_sent flag so the 24h and 2h reminders don't step on each other. Small settings per client. Business hours, owner's phone number, review link. Change it in the table instead of digging through nodes. What I'd still keep in Sheets or a real database: anything the client needs to see, anything big (there's a size limit, you can raise it if you self host), and anything you'd hate to lose if the instance dies. It's handy, it's not a backup. Docs here: https://docs.n8n.io/build/work-with-data/data-tables Anyone using it with real clients yet? Curious if you've hit the size limit or if it's been fine.
0 likes • 17d
one edge case with the lookup then insert dedupe: if the webhook fires twice within a second, both runs can do the lookup before either one has inserted, and you still get the double text. rare but it's literally the "fires twice" case lol. putting the insert right after the lookup, before any slow AI or send step, makes that gap way smaller
1-9 of 9
Suman Inavati
2
6 points to level up
@suman-invati-7370
3 years at Chrono AI, helping businesses build AI systems that deliver real results.

Active 13d ago
Joined Sep 27, 2026
Dubai, United Arab Emirates