> For the complete documentation index, see [llms.txt](https://infinity-command.gitbook.io/infinity-command/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infinity-command.gitbook.io/infinity-command/scripting-and-automation/intro-to-cues-and-cue-cards.md).

# Intro to Cues & Cue Cards

Just about everything that happens under the hood in *Infinity Command* — spawning characters, playing sound effects, changing the music, controlling NPC behavior, etc. — has a **Cue** that goes with it. Cues are simply a few lines of text (in JSON format) that tell the app what to do.

‍**Cues** can be grouped into **Cue Cards**, which can also be grouped into **Scripts**. These can be either specified directly or referenced from files inside the **Content Pack** folder, making them easy to organize, reuse, and share. Together, they make it simple to automate complex effects, actions, and even entire missions. This frees you up to focus on what matters most: storytelling and your crew.

That said, you always have the option to edit or override pre-scripted events based on your crew's needs.

To get started with your own custom scripting, you can use the samples included in the default Content Pack as a guide. We'll add more detailed tutorials and documentation over time, but in the meantime please feel free to [chat with us on Discord](https://discord.gg/wmNhfUksJP) and we'll help you out. We can't wait to see what you come up with!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://infinity-command.gitbook.io/infinity-command/scripting-and-automation/intro-to-cues-and-cue-cards.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
