While actively advancing my Japanese study with Yomitan and AnkiConnect, I wanted newly mined vocabulary cards to automatically include natural example sentences, pitch/nuance notes, and short mnemonics—without running an extra local proxy server, risking port conflicts, or hacking Yomitan templates.
Anki LLM Field Filler solves this by hooking directly into Anki’s native anki.hooks.note_will_be_added lifecycle event inside the desktop client.
How It Works
- Zero-Conflict Hook Pipeline: When Yomitan sends a freshly mined card through AnkiConnect, Anki fires
note_will_be_addedjust before writing the note to the collection—eliminating extra servers or port conflicts. - Rule-Based Prompt Templates: Matches enabled rules by note type and target field, skips already-populated fields by default (
overwrite_if_not_emptyoptional), and substitutes{FieldName}placeholders from the card’s existing fields. - Single Batched JSON-Mode Call: All matching target fields for a note are filled in one structured JSON-mode request across OpenAI, Google Gemini, OpenRouter, Local Ollama, or any custom OpenAI-compatible endpoint.
- Visual Qt Settings & Release Automation: Ships with a native Qt settings dialog featuring clickable
{FieldName}chips, dynamic/modelsrefresh, a live Test Prompt preview, apytestunit test suite, and GitHub Actions workflows that package versioned.ankiaddonreleases.