> 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-to-unified-transition/advanced-prompts-and-complex-setups.md).

# Advanced prompts and complex setups

## No more specialisations – just refine your prompt

In the Unified Flow, you no longer need to manually select specialisations when programming complex questions. If the first AI output isn't correct, simply refine your prompt. Here are some example prompts:

* **"Use JS for QID"**
* **"Use hybrid question for QID"**
* **"Program this QID using MaxDiff indices method"**
* **"Program this QID using custom Conjoint method"**
* **"Create Q9 as a hybrid question."**
* **"Implement Q9 using JS validation."**
* **"Implement Q9 using MaxDiff indices method."**

These prompts help guide the agent to produce the desired setup.

## JavaScript update best practice

For JavaScript updates, it is recommended to **copy-paste the HTML/JS content** into the chat and ask the AI to modify it by providing feedback on what's not working—rather than selecting the question and using **Ctrl + K**. This approach works more reliably.


---

# 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-to-unified-transition/advanced-prompts-and-complex-setups.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.
