> For the complete documentation index, see [llms.txt](https://docs.flip.to/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flip.to/docs/platform/discovery/special-codes.md).

# Special Codes

Discovery is designed to handle all types of conversations on your site, including with visitors interested in a promotion, who belong to a group, or have other codes to put to use.

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td>Planners enter their code into Discovery, or it's passed in automatically.</td><td><a href="/files/q2qdLTqgGsknnN7xFBoN">/files/q2qdLTqgGsknnN7xFBoN</a></td></tr><tr><td>Planners can view and edit their promotion or group code at any point.</td><td><a href="/files/iIGgaXCKGktk8O6Xiiwn">/files/iIGgaXCKGktk8O6Xiiwn</a></td></tr><tr><td>If planners don't complete their booking, their code is saved to their plan when returning.</td><td><a href="/files/jjTmARXWDHP6LjOqz1aZ">/files/jjTmARXWDHP6LjOqz1aZ</a></td></tr></tbody></table>

## Support for special codes is easily configured

{% stepper %}
{% step %}
**Sign into your account and head to Mission Control → Booking.**

Scroll down to the details for Special Codes.

<figure><img src="/files/TuJkIsZjCGPSBGQZSSJQ" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Configure your code types.**

Add the code type you want to support, rename it if you prefer, and save.

<figure><img src="/files/zWuWd19CRJ5k65a0HZD0" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Switch on.**

Planners will now be able to manually enter a code in Discovery.

<figure><img src="/files/Cxxgm7mHXprfSvreG1X2" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

## Passing codes in automatically

There are two ways Discovery passes special codes, out-of-the-box:

First, Discovery detects if a booking link contains additional parameters for a promotion or group code.

Alternatively, Discovery also detects special codes on any triggers where [website markup](/docs/integrations/websites/website-markup.md) has been added.

Either way, the code will automatically pass in to the booking engine so it **just works**.

For more on this feature, or to switch on, [head over to your account](https://manage.flip.to/home), or say hello to the Flip.to team.


---

# 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://docs.flip.to/docs/platform/discovery/special-codes.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.
