AI Explainer Enhanced

AnkiWeb addon 1149544801

Generates HTML explanations for current or batched cards via OpenAI or Gemini, using custom prompts and selected note fields, with skip, overwrite, or append output options.
AI-generated summary; may contain mistakes.

card-creationainote-management

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
0 (👍 0 · 👎 0)
Updated
2026-02-18
Anki versions
23.10~
License
MIT (from the GitHub repository)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON
Description language
en

Maintenance

stale

  • Last update or commit: 2026-02-18 (256 days before the snapshot).
  • GitHub Actions workflows: 3.
  • The GitHub repo is shared with 1 other addon; its commits, issues and releases are not specific to this one.
  • Commits in the last year: 51.
  • Issues: 0 open, 1 closed.
  • Pull requests: 0 open, 6 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
23.10+2026-02-18
History across monthly snapshots

Loading…

Similar addons

OmniPrompt-Anki

Generates AI-powered flashcard content such as definitions, translations, and explanations from multiple cloud or local providers, with reusable prompts, batch processing, and multi-field output.

card-creationainote-managementformattingshortcuts

7 votes 65% approval 👍 7 · 👎 0 ⭐ 9 Anki 2.1.66~ Updated 2026-04-23
AI Language Explainer

Generates contextual written explanations and spoken audio for target words in sentence cards using OpenAI models and selectable TTS engines, with one-click or batch processing.

card-creationaisync-integrationdictionary

10 votes 72% approval 👍 10 · 👎 0 ⭐ 9 Anki 2.1.66~ Updated 2025-10-07
IntelliFiller ChatGPT has 1 fork →

Autofills Anki card fields using ChatGPT or Claude via customizable prompts that reference field names, with saved prompts and batch filling across multiple selected cards.

card-creationai

29 votes 62% approval 👍 23 · 👎 6 Anki 24.11~ Updated 2025-03-09

Description




Anki AI Explainer generates an HTML explanation for your cards using an LLM.

It is intentionally simple and generic:

  • You write one custom prompt
  • You can read any number of note fields
  • The add-on enforces HTML-only output, so it can be inserted directly into an Anki field

==================================================


How to use

  1. Open settings: Tools → Add-ons → Anki AI Explainer → Config
  2. Choose your provider (OpenAI / Gemini) and set your API key
  3. Select input fields (no limit) and the output field (default: Explanation)
  4. Write your user prompt
  5. Generate:
  • In reviewer: shortcut (default Ctrl+Shift+L)
  • Reviewer “More…” menu: Generate AI Explanation
  • Tools menu: batch generate for search results

Prompt placeholders

You can use these placeholders in your prompt:

  • {{fields}}

    • Expands to all selected input fields, concatenated in order as: FieldName:\nvalue
  • {{FieldName}}

    • Expands to a specific field value.
    • Example: {{Question}}, {{Answer}}
    • If the field does not exist / is unavailable, it becomes an empty string.

Example prompt

Explain this note in concise HTML (no greetings). Use bullet points when helpful.

{{fields}}


Existing output behavior

When the output field already has content:

  • Skip (do nothing)
  • Overwrite
  • Append (with a custom separator)

Notes

  • The add-on requests HTML-only output. If the model returns Markdown fences (```html), the add-on may strip them.
  • Note field contents are sent to your provider as-is. Avoid sending sensitive data.

==================================================

Screenshots








==================================================

Supports

This tool is built to support medical students and residents.
Support via thumbing up 👍 on this page and Buy Me a Coffee ☕ motivates me a lot!!


README

Anki AI Explainer

Anki add-on that generates an HTML explanation for the current card (or for a batch of notes) using an LLM.

This add-on is designed to be simple and highly generic:

  • You can write any prompt you want (single “User prompt”).
  • You can choose any number of input fields to send to the model (no hard limit).
  • The add-on enforces that the model returns HTML only (to paste directly into an Anki field).
  • Prompts support:
    • {{fields}} : all selected fields concatenated as FieldName:\nvalue
    • {{FieldName}} : access an individual field value directly (e.g. {{Question}}, {{Answer}})

The add-on intentionally does not provide built-in settings like language, style, or length. Put those instructions in your prompt.


Features

  • Generate explanation for the current reviewer card (via shortcut / reviewer context menu)
  • Batch-generate explanations for notes matched by an Anki search query (Tools menu)
  • Flexible behavior when the destination field already has content:
    • Skip / Overwrite / Append (with custom separator)
  • Works with either:
    • OpenAI (Chat Completions API)
    • Google Gemini (Generative Language API)

Installation

From AnkiWeb

Install via AnkiWeb (recommended).
(AnkiWeb URL will be added after publishing.)

Manual install (GitHub)

  1. Download this repository as a zip
  2. Extract into your Anki add-ons folder:
    • Tools → Add-ons → View Files
  3. Restart Anki

Quick Start

  1. Open add-on settings: Tools → Add-ons → Anki AI Explainer → Config
  2. Set your provider and API key
  3. Choose:
    • Input fields you want the model to read (e.g. Question, Answer, Extra)
    • Explanation field to write the output to (default: Explanation)
  4. Write your User prompt
  5. Generate explanations:
    • In review: press the shortcut (default Ctrl+Shift+L)
    • Or: open reviewer “More…” menu → Generate AI Explanation
    • Or: Tools → AI Card Explainer: generate for search results

Prompt Placeholders

{{fields}}

Expands to all selected input fields, concatenated in order:

Example expansion:

Question:
What is ATP?

Answer:
Adenosine triphosphate

{{FieldName}}

Expands to the value of the individual field.

Example:

  • {{Question}} → value of the Question field
  • {{Answer}} → value of the Answer field

If a placeholder refers to a field that is missing/unavailable, it is replaced with an empty string.


Example Prompts

Minimal (recommended)

Explain the following Anki note in concise HTML.

{{fields}}

Q/A style

<p><b>Q:</b> {{Question}}</p>
<p><b>A:</b> {{Answer}}</p>

Requirements:
- HTML only
- No greetings
- Use <ul><li> for lists
- Highlight key words with <b>

Settings

Key settings (in config.json):

  • 01_provider: openai or gemini
  • 01_openai_api_key, 01_openai_model
  • 01_gemini_api_key, 01_gemini_model
  • 02_input_fields: array of field names to read (order matters)
  • 02_explanation_field: field name to write HTML output into
  • 03_user_prompt: your prompt template
  • 04_on_existing_behavior: skip / overwrite / append
  • 04_append_separator: used when appending
  • 05_max_notes_per_run: batch limit
  • 05_review_shortcut: reviewer shortcut

Notes / Safety

  • The add-on requests the model to return HTML only. Some models may still wrap output in Markdown fences (```html).
    The add-on attempts to strip a single surrounding fence to reduce friction.
  • Field values are passed to the model as-is (including any HTML contained in the note fields). Do not include sensitive data in notes if you do not want to send it to your provider.

License

MIT License