Playing AI Dungeon

Getting Started

AI Dungeon 101

Adventure Awaits

Common Questions

About the AI

Account Questions

Memberships & Benefits

Privacy & Security

Terms of Service

Other Questions

Community

Feedback & Bugs

Product Updates

Table of Contents

All About Story Cards

<aside> <img src="https://prod-files-secure.s3.us-west-2.amazonaws.com/6cd5a73c-9af8-4da4-9fef-c8ea3e73ad44/87d85d6a-25e2-4d6d-bc9d-b3ece3dc5ba1/down-arrow.svg" alt="https://prod-files-secure.s3.us-west-2.amazonaws.com/6cd5a73c-9af8-4da4-9fef-c8ea3e73ad44/87d85d6a-25e2-4d6d-bc9d-b3ece3dc5ba1/down-arrow.svg" width="40px" /> Press here to jump down to the section about generating Story Cards →

</aside>

What Are Story Cards?

<aside> <img src="https://prod-files-secure.s3.us-west-2.amazonaws.com/6cd5a73c-9af8-4da4-9fef-c8ea3e73ad44/01902d19-4cac-4538-b34a-8f8152f0a185/four-shapes.svg" alt="https://prod-files-secure.s3.us-west-2.amazonaws.com/6cd5a73c-9af8-4da4-9fef-c8ea3e73ad44/01902d19-4cac-4538-b34a-8f8152f0a185/four-shapes.svg" width="40px" /> Story Cards are notes for the AI about characters, locations, concepts, or any other elements of your story.

</aside>

The AI only consults Story Cards when they become relevant. Their relevance is determined by keywords called Triggers. Story Cards only go into context when they are activated because their Triggers occur in the input or output, and they stay in context for a variable period depending on context window size after they are activated.

When Should I Use Story Cards?

You don't have to use Story Cards to enjoy AI Dungeon; they're optional. But if you're willing to take the time to add Story Cards to your Scenarios and Adventures, they can help the AI maintain consistency and add depth to your story. How you use this powerful tool is up to you, but here are some suggestions:

Capturing Elements

As you play, you might encounter something intriguing in your story: a character, a place, an idea. If you want the AI to remember everything about this element after it scrolls out of the context window, you can create a Story Card for it, manually entering what you think is important for the AI to know the next time it comes up.

Fleshing Out Elements

The AI might mention a person or place without providing much detail. If you want to expand on this element, one way is to create a Story Card for it. You can either write the details yourself or use the Story Card Generator to help you. That way, the AI will have more to go on when writing about the newly detailed element.

Preliminary World-Building

Before you start playing, you might want to set up a story world filled with places, people, things, and concepts to use in your Adventure. Story Cards allow you to create this framework, ensuring the AI has access to your custom world-building.

By using Story Cards effectively, you can create more immersive and coherent narratives in which the AI can call up information at just the right time. However, while using Story Cards at a basic level is easy, mastering them takes time. Let's start with card components.

Anatomy of a Story Card

Each Story Card consists of:

  1. Type: Relevant for Character Creator Scenarios, in which case it determines whether the card is available for character selection. In other Adventures, the AI ignores Type unless you’re generating new Story Cards with AI.
  2. Name: For your reference only; the AI ignores Name.
  3. Entry: This is the core information that gets sent to the AI when the card is triggered. Over the history of AI Dungeon, opinions about optimal formats for cards have varied widely. You can and should experiment with formats, but there is no evidence that there is any downside to using plain English, as long as you are concise to save context space. You will find more detailed advice about what to put into the Entry field in the section "Best Practices for Using Story Cards" below.
  4. Triggers: Words or phrases that cause the Entry information to be sent to the AI. Triggers are case-insensitive but sensitive to leading and trailing spaces. A more detailed explanation of Triggers is provided below under “How Story Cards Work,” and suggestions for trigger composition are provided in the “Best Practices for Using Story Cards” section.
  5. Notes: The AI ignores Notes during your Adventures. Its only use is in Character Creator Scenarios, where it is shown to the player as the description of each option that may be chosen in the character selection process. In that case, it can be useful if you want to show the player a shorter or otherwise different version of the option's Entry description.

How Story Cards Work

When a trigger word or phrase appears in the AI's output or the player's input, the corresponding Story Card's Entry is added to the context sent to the AI. Note that only the Entry is shown to the AI, and it is prefaced by the phrase "World Lore:". This allows the AI to incorporate the information into its responses for as long as the Card stays in context. However, keep in mind that the AI does not know Story Cards exist. It does not know to look for them unless their Triggers have occurred. All it knows, when a Card is activated, is that its context now includes this information.

As mentioned, Story Cards are active for a variable number of turns after being triggered depending on the context window size, and they can be triggered by player inputs and AI outputs. However, the same AI output that first activates a given Story Card cannot use the information contained within that card, because its context does not yet include the Entry text. This means that if you have a Card for a character named "Amanda" with her name as the trigger, and the AI includes her in an output when she is not yet in context, it will not have access to the Story Card information about her when generating that output.

Best Practices for Using Story Cards

  1. Composing Entries:
  2. Effective Use of Triggers:
  3. Balancing Information:

Story Card Management

Troubleshooting and FAQs

<aside> <img src="https://prod-files-secure.s3.us-west-2.amazonaws.com/6cd5a73c-9af8-4da4-9fef-c8ea3e73ad44/b9327047-613c-4e7a-996b-506ff3e27233/ic_round-discord.svg" alt="https://prod-files-secure.s3.us-west-2.amazonaws.com/6cd5a73c-9af8-4da4-9fef-c8ea3e73ad44/b9327047-613c-4e7a-996b-506ff3e27233/ic_round-discord.svg" width="40px" /> Please contact @wanderingstar1 on our Discord if you have feedback about this guide or ask in the ⁠#community-help channel for additional advice.

</aside>


How to Generate Story Cards

You can use AI to generate Story cards if you don’t want to manually write them.

SC_New-Flow.png

Generator Settings

When creating Story Cards, you'll find a "Generator Settings" tab at the top of the popup menu that contains different options to customize your AI-generated cards. We recommend starting in this tab so you can adjust these settings before diving into Story Card creation.

SC_Generator-Settings.png

  1. Use Beta Model: Make sure this toggle is turned on to take advantage of the new fine-tuned model powering AI generation. Story Cards created when this is off will not be able to use the following Story Summary, AI Instructions, or Story Information settings.

  2. Speed Create Mode: Quickly create multiple Story Cards in a row by turning on this setting. When enabled, the “Finish” button changes to “Next,” so you can simultaneously save your current card and make a new blank card of the same type. If you love getting into a creative flow and writing many different types of cards at once, this is for you!

  3. Include Story Summary: The AI will consider the information in the Story Summary plot component when generating Story Cards if this setting is toggled on. This is a great way to give the AI some details about your overarching narrative so it can create new cards in the context of your story. Note: this setting is separate from the “Story Information” field discussed below.

  4. Log Generation in Notes: Every AI output and subsequent retry is automatically added to the Notes section of that card when this setting is on, so you can generate multiple entries and choose the best parts for your desired card.

  5. AI Instructions: Tell the AI what kind of card you want it to create and customize the AI-generated outputs. You could include:

    You can keep your instructions short or include multiple at once—it’s up to you! Play around with it and see what works best for your creation style.

  6. Story Information: Provide additional key details about your story for the AI to consider while generating new cards. You could include:

The AI Instructions and Story Information fields are specific to the Adventure or Scenario they’re tied to, so make sure to update these settings for every story you’re creating!

Details

After adjusting your Generator Settings, switch back to the “Details” tab to start creating Story Cards!

SC_Generation.gif

  1. Type: Choose from the default options—”Character” (new!), “Class,” “Race,” “Location,” or “Faction”—or choose “Custom” to create your own Type (e.g. Lore, Item, Event, Spell, Weapon, etc.)
  2. Name: Type in your own Name or use the “Generate New” button to create one with AI, which will also create a related Entry and Triggers.
  3. Entry: Type in your own Entry or use the “Generate New” button to create one with AI. If a “Name” already exists, the AI will generate an Entry based on the Name field.
  4. Generate New with AI: Use these buttons to easily create AI-generated cards or regenerate outputs that don’t work for your desired story. Keep in mind that using the button under “Name” will always create a new Name, Entry, and Triggers.
  5. Triggers: Triggers are crucial for Story Cards to work.
  6. Notes: Since the AI ignores this field, you can leave any kind of notes about the Story Card. If “Log Generation in Notes” is on under your Generator Settings, every AI generation created for that card will be logged in this section, so you can hand-pick which information you want under the Entry.
  7. Finish/Next: Move on to creating new cards with this button in the top right corner.
  8. •••: This button in the top left corner has several options—“Finish and Start New Card,” “Finish and Close,” and “Delete”:

Best Practices for Story Card Generation

Examples

Here are some simple ways you could structure your Story Card settings to achieve different AI-generated outputs:

<aside> <img src="/icons/sword_gray.svg" alt="/icons/sword_gray.svg" width="40px" /> Fantasy

</aside>

<aside> <img src="/icons/rocket_gray.svg" alt="/icons/rocket_gray.svg" width="40px" /> Sci-Fi

</aside>

<aside> <img src="/icons/search_gray.svg" alt="/icons/search_gray.svg" width="40px" /> Historical Mystery

</aside>

<aside> <img src="https://prod-files-secure.s3.us-west-2.amazonaws.com/6cd5a73c-9af8-4da4-9fef-c8ea3e73ad44/c634333b-43db-4b6a-a7be-f5f611b594cb/ic_round-discord.svg" alt="https://prod-files-secure.s3.us-west-2.amazonaws.com/6cd5a73c-9af8-4da4-9fef-c8ea3e73ad44/c634333b-43db-4b6a-a7be-f5f611b594cb/ic_round-discord.svg" width="40px" /> Remember that you can always get more information on this, or any subject, by asking on our official Discord Server.

</aside>