> For the complete documentation index, see [llms.txt](https://help.autify.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.autify.com/nocode-mobile/en/using-autify-nocode-mobile/scenario-creation-and-maintenance/prompt-assertion.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# Prompt Assertion

## What is a Prompt Assertion

**Prompt Assertion** is a feature that allows you to perform assertions on screen screenshots using custom, free-form prompts.

{% hint style="warning" %}
**Availability of Prompt Assertion (Beta)**

This beta feature is only available upon request to our Support. Reach out if you want to try it.

Note that as an experimental feature, it may not always behave as expected. If you find any behavior that seems like an issue, inform our Support.
{% endhint %}

## How to Add Prompt Assertion Steps to a Scenario

You add **Prompt Assertion** steps from the **Scenario** details screen. Please note that these steps cannot be added during a recording session.

1. On the **Scenario** details screen, hover your mouse over a recorded step and click the icon below.

   ![](https://1041389054-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fj0BSsfTevAGpY0hwBHT7%2Fuploads%2Fgit-blob-7fca41d472560ddfeeefd24be3ba7eb43ee40933%2F%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202025-10-16%2023.47.34.png?alt=media)
2. Enter your prompt in the dialog, click the Test button to verify the behavior.

   ![](https://1041389054-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fj0BSsfTevAGpY0hwBHT7%2Fuploads%2Fgit-blob-a215f60abb5ee5ed6180f003e638fdcd5b7a7b77%2F%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202025-10-16%2023.48.36.png?alt=media)
3. Once you confirm the assertion's behavior, click the Save button. A **Prompt Assertion** step will be added to your scenario.

Additionally, since **Prompt Assertion** evaluates the results based on the visual appearance of the screen, it cannot verify functional behaviors, such as whether a button is disabled.

## Reviewing Prompt Assertion Steps in Test Results

On the **Test Result** details screen, you can hover your cursor over the question mark icon next to "See the detail" to view the specific judgment made for your prompt and the reasoning behind it.

![](https://1041389054-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fj0BSsfTevAGpY0hwBHT7%2Fuploads%2Fgit-blob-cddf024010e5d62813ec02d5c38cb60d1e23eeda%2FScreenshot%202026-02-24%20at%2015.49.25\(1\).png?alt=media)

## Tips for Using Prompt Assertion Effectively

When prompts are ambiguous, assertion results may become unstable, leading to false negatives (failing when it should pass) or false positives. Therefore, we highly recommend writing instructions as clearly as possible.

Even with clear instructions, hallucinations can still occur, leading to unintended results. For validations that can be handled by [ML Assertion](https://help.autify.com/nocode-mobile/en/using-autify-nocode-mobile/scenario-creation-and-maintenance/ml-assertion.md), we recommend using ML Assertion instead.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.autify.com/nocode-mobile/en/using-autify-nocode-mobile/scenario-creation-and-maintenance/prompt-assertion.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
