# "Anki Addon: Create Multiple Normal and Filtered Decks from JSON" (partially finished, working)

**URL:** <https://forums.ankiweb.net/t/anki-addon-create-multiple-normal-and-filtered-decks-from-json-partially-finished-working/56803>\
**Category:** Add-ons\
**Created:** [March 7, 2025, 6:53am UTC](https://forums.ankiweb.net/t/anki-addon-create-multiple-normal-and-filtered-decks-from-json-partially-finished-working/56803 "2025-03-07T06:53:03Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![krstoevan](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@krstoevan](https://forums.ankiweb.net/u/krstoevan)\
**Post date:** [March 7, 2025, 6:53am UTC](https://forums.ankiweb.net/t/anki-addon-create-multiple-normal-and-filtered-decks-from-json-partially-finished-working/56803/1 "2025-03-07T06:53:03Z")

</div>

~~I’m curious about why C3.5 isn’t functioning as expected. Would feeding it some API help improve its performance? I understand that new versions of LLMs aren’t released every day. I’m currently using Windows 10, Anki 23.10, and FSRS.  
I primarily use Cursor IDE with C3.5 for most of my hobby coding, and it has been quite reliable until now. However, today I encountered an issue where it couldn’t even create filtered decks.  
I decided to try C3.7, which was released just under two weeks ago. While I know that C3.7 is smarter, I’m wondering if this simple job (creating filter deck) requires more information to function properly or if it relies on intelligence to get the job done.  
Based on my experience, newer versions tend to be better, but I’m curious if there’s a way to enhance C3.5’s capabilities by feeding it an API, especially since new versions aren’t released frequently. Thanks for your help!~~

---

<div class="post-metadata">

**Author:** ![krstoevan](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@krstoevan](https://forums.ankiweb.net/u/krstoevan)\
**Post date:** [March 7, 2025, 6:54am UTC](https://forums.ankiweb.net/t/anki-addon-create-multiple-normal-and-filtered-decks-from-json-partially-finished-working/56803/2 "2025-03-07T06:54:30Z")

</div>

ps: C3.7 thinking is expensive and shortage in supply.  
if you only use it for coding, copilot is a good source. however it refuse to answer anything other than programming

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [March 7, 2025, 7:47am UTC](https://forums.ankiweb.net/t/anki-addon-create-multiple-normal-and-filtered-decks-from-json-partially-finished-working/56803/3 "2025-03-07T07:47:01Z")

</div>

This is not a question for this forum. You obviously don’t need an AI bot to create a Filtered deck – [Filtered Decks - Anki Manual](https://docs.ankiweb.net/filtered-decks.html) . If you have questions about how an AI bot functions – you should direct those to its programmers.

---

<div class="post-metadata">

**Author:** ![krstoevan](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@krstoevan](https://forums.ankiweb.net/u/krstoevan)\
**Post date:** [March 7, 2025, 2:47pm UTC](https://forums.ankiweb.net/t/anki-addon-create-multiple-normal-and-filtered-decks-from-json-partially-finished-working/56803/4 "2025-03-07T14:47:22Z")

</div>

i dont think so. this is multi displine.

other candidates who use anki with LLMs to build tools will found my experience useful.

---

<div class="post-metadata">

**Author:** ![krstoevan](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@krstoevan](https://forums.ankiweb.net/u/krstoevan)\
**Post date:** [March 7, 2025, 5:44pm UTC](https://forums.ankiweb.net/t/anki-addon-create-multiple-normal-and-filtered-decks-from-json-partially-finished-working/56803/5 "2025-03-07T17:44:35Z")

</div>

hi, i sort of made an addon alike in this reddit post:

> **[Reddit - Dive into anything](https://www.reddit.com/r/Anki/comments/4ays7f/addon_idea_multiple_custom_study_sessions_at_once/?rdt=40999)**

that you edit a .json file, and the addon create for you. the number of deck, normal or filtered, query, sort by, add numbers etc can be edited in the .json file.

however as a med student the naming of the deck contains subject - intmed/sur/pedi/obgyn so the script may need some tunning.

i just paste the .json file to see if someone may found it useful first.

```auto
{
    "profiles": [
        {
            "name": "ConcentratedStudy",
            "phase": "(mr mitral regur*)",
            "fullname": "MitralRegurgitation",
            "subject": "intmed",
            "decks": [
                {
                    "name_pattern": "{fullname}-{subject}",
                    "type": "normal"
                },                              
                {
                    "name_pattern": "{fullname}-{subject}-exmed",
                    "type": "filtered",
                    "search_query": "{phase} -tag:Not{fullname}* -is:suspended tag:{subject} -tag:case tag:exmed*",
                    "limit": 100,
                    "order": 2,
                    "resched": true,
                    "empty": true
                },
                {
                    "name_pattern": "{fullname}-{subject}-lv1a",
                    "type": "filtered",
                    "search_query": "{phase} -tag:Not{fullname}* -is:suspended tag:{subject} -tag:case tag:lv1a*",
                    "limit": 100,
                    "order": 2,
                    "resched": true,
                    "empty": true
                },
                {
                    "name_pattern": "{fullname}-{subject}-lv1b",
                    "type": "filtered",
                    "search_query": "{phase} -tag:Not{fullname}* -is:suspended tag:{subject} -tag:case tag:lv1b*",
                    "limit": 100,
                    "order": 2,
                    "resched": true,
                    "empty": true
                },
				{
                    "name_pattern": "{fullname}-z-else",
                    "type": "filtered",
                    "search_query": "{phase} -tag:Not{fullname}* -is:suspended -tag:case -tag:exmed* -tag:lv1a* -tag:lv1b*",
                    "limit": 100,
                    "order": 2,
                    "resched": true,
                    "empty": true
                }
				
            ]
        }
    ],
    
    /* 
    Card order options:
    0: Oldest first (cards ordered by creation/modification time)
    1: Random
    2: Increasing intervals
    3: Decreasing intervals
    4: Most lapses
    5: Order added
    6: Order due
    7: Latest added first
    */
}

```

---

<div class="post-metadata">

**Author:** ![krstoevan](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@krstoevan](https://forums.ankiweb.net/u/krstoevan)\
**Post date:** [March 7, 2025, 5:47pm UTC](https://forums.ankiweb.net/t/anki-addon-create-multiple-normal-and-filtered-decks-from-json-partially-finished-working/56803/6 "2025-03-07T17:47:28Z")

</div>

~~i dont have access to the addon webpage now, any existing addon do the same thing? am in reinventing the wheel? thanks~~

ps: i have access to that page now, seems not done before. @Shigeyuki if you wish you could pick it up and finish it. just credit me like last time i am all ok. thanks. But you have to tune it for layman to use as the naming now is fitted for my med study more. thx

ps: similar to [https://ankiweb.net/shared/info/2058067048](https://ankiweb.net/shared/info/2058067048)

ps: c3.7t:  
While both add-ons help create filtered decks, they serve different purposes:

### Filtered Deck From Tag

- **Quick tag-based decks:** Right-click on a tag in the browser to instantly create a filtered deck
- **Single-deck focus:** Creates one deck at a time directly from the browser
- **Tag-oriented:** Primarily designed to study specific tags
- **On-demand usage:** For spontaneous, one-off filtered deck creation

### Your CustomStudyBuilder

- **Comprehensive deck system:** Creates multiple related decks at once based on profiles
- **Complex queries:** Supports sophisticated search patterns beyond just tags
- **Consistent structure:** Ensures the same deck organization across different subjects
- **Configuration-driven:** Uses a JSON file for detailed customization
- **Reusable profiles:** Save complex deck setups for repeated use

The two add-ons actually complement each other rather than overlap:

- Use Filtered Deck From Tag for quick, impromptu studying of specific tags
- Use CustomStudyBuilder for creating comprehensive, standardized study systems across different subjects

CustomStudyBuilder is more powerful for complex, repeatable deck structures, while Filtered Deck From Tag offers more convenience for simple, immediate tag-based study.

---

<div class="post-metadata">

**Author:** ![krstoevan](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@krstoevan](https://forums.ankiweb.net/u/krstoevan)\
**Post date:** [March 10, 2025, 11:46am UTC](https://forums.ankiweb.net/t/anki-addon-create-multiple-normal-and-filtered-decks-from-json-partially-finished-working/56803/7 "2025-03-10T11:46:02Z")

</div>

hi,  
currently i am happy using my addon.  
i do will open browser and do a “search” to see what cards present for a specific topic, and then try several keywords to see how i divided that into subdecks.

then i’ll use my addon to create that 5 subdeck for that topic. it helped me.

recently i found anki’s addon 's page is re-implemented that i can dnld the whole list of 1744 anki addon’s info i.e. name, ratings, last modified time etc.

just come across one addon that is similar:  
[https://ankiweb.net/shared/info/861263371](https://ankiweb.net/shared/info/861263371)  
however it’s broken since 2021 (and i am a new anki user it seems i only start using anki at the end of 2021 something)

someone in the above thread say there is a new version  
[https://ankiweb.net/shared/info/127393092](https://ankiweb.net/shared/info/127393092)  
but looks like is another tool to me.

anyway,  
if i am time, i’ll either make my addon become more general, so will suit to non-med school users.

or indeed one can simply ask LLMs to update that addon.

---

<div class="post-metadata">

**Author:** ![krstoevan](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@krstoevan](https://forums.ankiweb.net/u/krstoevan)\
**Post date:** [March 14, 2025, 5:31am UTC](https://forums.ankiweb.net/t/anki-addon-create-multiple-normal-and-filtered-decks-from-json-partially-finished-working/56803/8 "2025-03-14T05:31:36Z")

</div>

i sort of modified it,  
that it now let user edit the .json file.  
can choose how many “alias” and how many cards to make.

so you list out how many cards you need,  
and for each card, what’s the search term, and you can include the “alias” into the search term.

this makes making a set of decks much faster.  
however there do exist some similar addons after i found out there is 1744 addon indeep.

sigh

---

<div class="post-metadata">

**Author:** ![Shigeyuki](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/shigeyuki/32/23878_2.png) [@Shigeyuki](https://forums.ankiweb.net/u/Shigeyuki)\
**Post date:** [March 14, 2025, 5:22pm UTC](https://forums.ankiweb.net/t/anki-addon-create-multiple-normal-and-filtered-decks-from-json-partially-finished-working/56803/9 "2025-03-14T17:22:47Z")

</div>

Hi thanks for the mention. Since I haven’t developed add-ons for filtered decks yet I’m not sure about it, so I’ll look into it next time.
