Save cards as a deck
save_deckSaves flashcards that the user provided or that you wrote together as a deck in the user's NextLang account, for free (no credits). Use it to turn a word list, a table or an export the user pasted into a deck. Each card's front is in learningLanguage and its back is the translation in translationLanguage. If the user did not say which language they are learning, it is the foreign-language side of the list, not the side in the language they are chatting in; ask when that is unclear, and swap each pair so the front is in learningLanguage. Repeated fronts are dropped and reported as skipped. For an .apkg (Anki) or .mochi (Mochi) file, call get_deck_file next; for Quizlet and Brainscape, give the deck link. When the user wants NextLang to write the cards on a topic, use generate_deck instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cards | Yes | ||
| level | No | CEFR level of the words. Pass it only when the user named a level; otherwise leave it out and b1 is used | |
| deckName | Yes | Name of the deck | |
| platform | Yes | Flashcard app the deck is for | |
| learningLanguage | Yes | Language being learned; the front of each card | |
| translationLanguage | Yes | Language of the backs |