# AI Prompt Assistant

No more second-guessing what to do next in the scripting process!

Metaforms includes a built-in **AI Prompt Assistant** to help streamline the process of generating survey code. This feature is designed to improve both the quality and speed of XML generation — particularly useful for users who are working with large questionnaires or repeating question types.

* Save time when creating large or repetitive surveys
* Get more accurate XML by improving the quality of AI instructions
* Maintain momentum without repeatedly referring back to the questionnaire file

## How does it work?

These suggestions appear as editable prompts in a box labeled “Suggested by AI.” You can modify the prompt or accept it as-is. This allows users to take full control over how instructions are interpreted by the AI — reducing incorrect outputs and making troubleshooting easier.

* 📝 The questionnaire file you’ve uploaded
* 🧩 The XML that has already been generated so far

## Auto-Accept Mode (Optional, but powerful)

If you want to go full autopilot - especially when you’re working on structured sections like demographics or screeners - just turn on **Auto-Accept**.

With Auto-Accept enabled:

* The AI assistant auto-accepts each prompt
* Generates the XML
* Waits 10 seconds... so you can quickly review if it needs any changes
* Then moves on to suggest and generate the next block\
  All without you having to click a thing.

Perfect for speeding through predictable or templated segments — while still leaving you in control for reviews and edits.

## How to Enable your AI Assistant?

To turn on the AI Prompt Assistant:

1. Navigate to **Settings → Features**
2. Under **Beta AI Features**, enable **AI Prompt Suggestions**

<figure><img src="https://1402057010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgtHd8o9ldznZ1hKHiZvc%2Fuploads%2FOBjABnELbWyfE4Olzw6S%2FScreenshot%202025-06-26%20at%202.36.11%E2%80%AFPM.png?alt=media&#x26;token=26a1842c-883a-47aa-9117-18c20c451d7b" alt=""><figcaption></figcaption></figure>

3. Inside the XML tab of your survey, you’ll start seeing suggested prompts
4. You can toggle **Auto-Accept Mode** from the suggestion box itself

<figure><img src="https://1402057010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgtHd8o9ldznZ1hKHiZvc%2Fuploads%2F6gTkpt5bkWIMJINaXhkl%2FScreenshot%202025-06-26%20at%202.38.56%E2%80%AFPM.png?alt=media&#x26;token=f87dc4df-ed71-4eea-9220-2600727f0ac4" alt=""><figcaption></figcaption></figure>

## Why It Helps

Think of this as your AI co-pilot — helping you stay focused on logic, validation, and structure while it takes care of the grunt work. Whether you're scripting a few questions or working through a 40-page tracker, AI Prompt Suggestions help you keep building without stopping to plan every move.


---

# Agent Instructions: 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/ai-prompt-assistant.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.
