Flagging the Anki Cards I Can’t Remember and Updating Them Automatically with n8n and Claude Code

This post contains a referral link.

More than eight years into studying English, I now have over 10,000 Anki cards.

I keep flipping through word after word, and the number of words I sort of understand has been growing.

But there’s one problem.

I’m not a returnee who grew up abroad, and I’m not a hardcore English learner either. I started at 35 as a beginner and took a year and a half to pass Eiken Grade 3, so learning new words takes a lot of effort for me. The trick is not to try to memorize. I simply meet each word as many times as possible and keep flipping through flashcards.

But with difficult words, some are easy to remember in Japanese and some aren’t, and there are cards I keep flipping and reviewing over and over. For example, words I finally learned recently after a few months:

indictment (a formal charge), alleviate (to ease) and meticulous (very careful about details). I remember the definitions, but I can’t instantly connect them to an image of how they’re used, so I probably couldn’t use them in real life.

For hard-to-remember words like these, I think it’s important to make them easier to remember by changing the Anki card layout or adding images, keeping the cards fresh.

But out of more than 10,000 cards, finding by hand, one by one, which cards are hard to remember and when to update them, in other words adding an image or changing the content a little to make it feel fresh, honestly isn’t realistic.

I mean, if I had that kind of time, I’d rather study Englishhh!

At times like this: Claude, pleeease ♪( ´θ`)ノ

Sponsored links

Not “all of them,” just the ones I really can’t remember

That’s when I remembered Anki’s flag feature (it lets you mark cards with colors like red, blue and orange to sort them). It even has keyboard shortcuts by default!

Even if you sort by the number of Again presses, with this many cards you still end up with a huge number.

But with flags, all I have to do is put a red flag on a card the moment I think, “Hmm, this one is hard to remember.”

The biggest point of this method is that it narrows things down to only the cards that bother me, not all of them.

The big picture

What I wanted was simple: if only the flagged cards are processed automatically, I can manage the card updates.

  • Put a red flag on hard-to-remember cards in Anki
  • n8n (a no-code automation tool) regularly fetches the “red-flagged cards” through the AnkiConnect (an add-on that lets you control Anki from outside) API
  • From the word and its meaning, AI automatically writes “a description of a memorable scene”
  • Pollinations.ai (a free AI illustration service) generates an image
  • The image is automatically inserted at the very top of the back of the Anki card
  • If I don’t like it, the flag stays, and next time it’s regenerated with a different approach

The text on the card itself doesn’t change. I designed it to keep the dictionary-style definition as is and only add an image. I didn’t want to mess with the content of cards I had spent so long growing.

By the way, I chose Pollinations.ai because it was free. But the quality isn’t that great, so I’ve only made some as a test so far…

DALL-E 3 costs about 6 yen (around 4 US cents) per image, so I thought free was totally fine to start.

Regenerating with three approaches

Even if an image comes out and I don’t like it, thinking “Hmm, that’s not quite it…,” as long as the flag is still there, I can just ask AI in plain language to make it again. Just say, “That image is kind of weird, swap it out one more time.” Amazing, right?

When it doesn’t work, I ask AI to change the approach each time: a concrete scene the first time, a focus on feelings and facial expressions the second time, and an abstract or metaphorical image the third time. Even for the same word, if you change the angle, one of them should stick in your memory. That’s the idea.

You could swap the images for all the flagged cards at once. For example, a red flag means a card I don’t get and want to update. Once AI has changed it, I make it green, so green means updated. If I still don’t like it while studying, I make it yellow, so yellow means update again, and I change those all together later.

After that, every learner can just run the AI however they like.

I realized I could control Anki directly from Claude Code (VS Code)

While building the batch process in n8n, something suddenly occurred to me. AnkiConnect runs on localhost:8765, so Claude (Claude Code) in VS Code can call it directly too.

I realized that just by saying, “I want to review my flagged Anki cards,” I could do everything in a conversation, from listing the flagged cards to suggesting rewrites and updating them. Wait, I don’t have to turn this into an n8n batch. I can do it while checking one card at a time.

I thought, “Why didn’t I just do this from the start?” and decided to split the roles.

n8n is for fully automatic batch processing, and Claude is for interactive work, checking one card at a time. When I want to run a lot at once, I use n8n, and when I think, “Today I only care about this one word,” I ask Claude directly. I use both like that.

What I actually tried

With fete (a festival; to entertain), I tested the whole pipeline: fetch the card → check the meaning → update it through AnkiConnect. That part worked as expected.

For indictment (a formal charge), the design is done up to generating a memorable image of a concrete scene. But this connects directly to the “waiting for an image API” story I write about next…

Where I’m stuck: Pollinations.ai became paid

This is my biggest wall right now. I planned to use Pollinations.ai (free, Flux), but as of June 2026 it had become paid, and it started returning a 402 error. Wait, wasn’t it supposed to be free…? (;´Д`A

A service I chose precisely because it was free went paid halfway through. It really hit home that this comes with the territory when you rely on free APIs.

For now, I’m settling for a Google image search link on the back of the card and searching by hand. I plan to start again as soon as I find a free API. For now, I’m considering the HuggingFace Inference API or switching to DALL-E 3 (6 yen per image). I want to get it to the point where it at least works, so I’m not rushing this search.

Setup steps (roughly)

  • Install the AnkiConnect add-on (code: 2055492159)
  • Add an “Image” field to Anki’s Basic note type
  • Add {{#Image}}{{Image}}
    {{/Image}}
    to the back template
  • Create the workflow in n8n

The AnkiConnect APIs I used

actionUse
findNotesGet the flagged cards with flag:1
notesInfoGet the contents of the card’s fields
storeMediaFileSave the image to Anki’s media folder (can be given as a URL)
updateNoteFieldsInsert <img src="…"> into the Image field

In the AnkiConnect settings, I set webBindAddress to 0.0.0.0 so that n8n on my NAS can connect too. I set the endpoint through my Tailscale IP, so it doesn’t have to be exposed to the outside.

Update (November 2026): 0.0.0.0 lets other devices on your network reach Anki too, so I’ve since set webBindAddress back to 127.0.0.1 (this Mac only). The n8n workflow has been paused since June, and I only switch to 0.0.0.0 temporarily when I use it. Using it from Claude Code on the same Mac works fine with 127.0.0.1.

Thoughts and where things stand

Splitting the roles, n8n = batch processing and Claude = interactive review, made a lot of sense to me ♪( ´θ`)ノ

My discovery this time: even with the same AnkiConnect, each tool has things it’s good and bad at, depending on the situation.

On the other hand, the image generation part is still on hold. Honestly, there’s no way to predict a free service suddenly becoming paid one day. For now, I’m getting by with a Google image search link while looking for the next free option.

It’s not a perfectly working system yet, but I like the design itself, flag a card → pick up only the cards that bother me, so I’d like to write about it again once the image part is solved. Fellow learners, if there are words you can’t remember, try starting by flagging just one card.

🃏 I’ve also put all my Anki posts together on one page, sorted by what you need: getting started, settings, keeping it up, automation, audio and troubleshooting.

NO IMAGE

Referral link: if you sign up through it, I may receive free lesson minutes.

🚩 Try using your flagged words in conversation

When you keep forgetting a word, using it in a real conversation shows you where you’re getting stuck. I try to use the expressions I learn in Anki during my Cambly lessons. You can talk with a native tutor any time, 24 hours a day, without booking. Through my referral link, you get 10 extra minutes when you buy a trial. I’ve been taking lessons on Cambly since July 2021.

Try Cambly with my referral link →

The referral program isn’t available in every region.

English expressions I learned (B2–C1)

I’m aiming for Eiken Grade 1, so I had AI pick out some useful phrases from this topic.

① indictment (a formal charge or accusation)

The indictment was announced after months of investigation.

You often see it in news articles, but it was a typical word where I knew the meaning yet couldn’t picture the scene.

② alleviate (to ease, to relieve)

This medicine helps alleviate the pain.

Often used together with pain or symptoms.

③ meticulous (very careful about every detail)

She is meticulous about checking every detail.

A word often used as a compliment.

Reference: Cambridge Dictionary

☕ Enjoyed this post?

I'm a Japanese blogger who spent 8 years relearning English from scratch.
If this post helped you, a coffee would mean a lot — thank you for reading!

Leave a Reply

Your email address will not be published. Required fields are marked *

ABOUT US
Suitman
An office worker in Japan who has worked in three fields: education, manufacturing and sales. I started learning English at 35 and, after 8 years of keeping at it, passed Eiken Grade Pre-1. VERSANT score: 59. I write about work tips, Excel, AI, English and cameras, all based on my own experience.