Anki add-on: Gemini Chat for Anki

Gemini Chat for Anki An intelligent AI chat assistant seamlessly integrated into your Anki study sessions. Get instant help with grammar explanations, translations, examples, and custom questions while reviewing your cards. 📖 Overview Gemini Chat for Anki brings AI-powered assistance directly into your Anki reviewer. Whether you need grammar explanations, translations, or want to ask custom questions about your cards, this add-on makes your study sessions more interactive and productive using Google's Gemini API. ✨ Key Features 💬 Embedded Chat Window – Built directly into the Anki reviewer 🎯 Context-Aware Responses – AI automatically receives your card content ⚙️ Per-Deck Configuration – Different prompts for different decks 📝 Multiple Note Type Support – Works with various card templates ✏️ Custom Prompts – Ask any question about your cards 🔧 Flexible API Support – Compatible with Gemini and other AI models 🚀 Installation Quick Install from AnkiWeb Open Anki Go to Tools → Add-ons → Get Add-ons... Enter code: 1698042138 Click OK and restart Anki ⚙️ Initial Configuration Step 1: Get Your Gemini API Key Visit Google AI Studio Sign in with your Google account Click Create API Key Copy the generated API key Step 2: Configure the Add-on In Anki, go to Tools → Gemini Chat Config In the configuration window: Paste your API Key in the API Key field Leave the API Endpoint as default (or customize if needed) Click Save 🎯 Enabling Chatbot for a Deck Follow these steps to configure the chatbot for a specific deck: Step 1: Open Deck Configuration Go to Tools → Gemini Chat Config In the configuration window, you'll see: Deck Selector dropdown at the top Note Type Selector below it Prompt Configuration area Step 2: Select Your Deck Click the Deck Selector dropdown Choose the deck you want to enable the chatbot for The add-on will scan for available note types in that deck Step 3: Choose Note Type Click the Note Type Selector dropdown Select the note type you're using for your cards The add-on will display available fields for that note type Step 4: Configure Prompts You have two options: Option A: Use Pre-defined Prompts In the Prompt Templates section, you'll see options like: Explain Grammar Translate Sentence Provide Examples Simplify Explanation Select the prompt that matches your study needs Click Save Option B: Create Custom Prompt Template Select Custom Prompt from the dropdown In the text area, write your custom prompt template Use field placeholders like {Front} , {Back} , {Word} , etc. Example custom prompt: Explain the grammar structure of: {Sentence} Also provide 2 example sentences using the same pattern. Click Save

GitHub repository: yuvaleryc/anki-ai-assitant
Languages: Python