> For the complete documentation index, see [llms.txt](https://help.metaforms.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.metaforms.ai/survey-programming-decipher/legacy-flow/think-hard-mode.md).

# Think Hard mode

**Metaforms comes with your very own AI deep-thinker.**

**Think Hard Mode** – a toggle designed for those moments when your survey logic gets truly complex, and you need AI that doesn't just rush through but carefully plans its next move.

## What is Think Hard Mode?

When enabled, **Think Hard Mode** lets Metaforms’ AI slow down and reason through the most challenging parts of survey programming — giving you more structured, reliable, and production-ready outputs.

You'll find the toggle inside the **Generate / Edit with AI** panel in your XML editor.

## When to Enable Think Hard Mode:

Use it when working with:

* **Complex multi-question validations**\
  e.g. multiple interdependent rows requiring unique logic
* **Advanced styling/scripting tasks**\
  e.g. inserting JS/CSS for layout refinements or conditional hiding
* **Nested loops or hidden logic layers**\
  e.g. MaxDiff, Conjoint, or any repeated structure with conditional display
* Any other complex scenarios where you think there needs to be deeper thinking.

## Think Hard Mode in Action

A Before/After example of using Think Hard Mode for a MaxDiff Question to help you understand it's power.

**Without Think Hard Mode**

The AI focuses on getting you a quick structure — but may miss advanced validation or styling nuances.

<figure><img src="/files/RMra5xd24AMRo7izpnby" alt=""><figcaption></figcaption></figure>

**With Think Hard Mode**

Notice the difference — deeper validations, cell-level JS customizations, and structured loop logic ready for live deployment.

<figure><img src="/files/y5sYkN9zIW6X8TBXss5Y" alt=""><figcaption></figcaption></figure>

## Where to Find It?

1. Navigate to any question in your **XML tab**
2. Click **Generate/Edit with AI**

<figure><img src="/files/yC7X8QTti1pLzDpXiGVA" alt=""><figcaption></figcaption></figure>


---

# 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:

```
GET https://help.metaforms.ai/survey-programming-decipher/legacy-flow/think-hard-mode.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
