> 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/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).

# プロンプトアサーション

## プロンプトアサーションとは？

プロンプトアサーションとは、画面のスクリーンショットに対して自由なプロンプトでアサーションを行う機能です。

{% hint style="warning" %}
**プロンプトアサーション（ベータ版）のご提供について**

本機能はご希望されるお客様への限定提供となっております。 機能の有効化をご希望の場合には、サポートまでお問い合わせください。 また、本機能は実験的な機能となりますため、より高い頻度で仕様変更などが行われる可能性や一部の環境で正常に動作しない可能性があります。 ご利用開始後、不具合と思われる挙動がございましたら、恐れ入りますがサポートまでお知らせください。
{% endhint %}

## プロンプトアサーションステップをシナリオに追加する方法

シナリオ詳細画面からステップを追加することが可能です。レコーディング中にはプロンプトアサーションステップの追加はできません。

1. シナリオ詳細画面で、記録されているステップにマウスを載せ、下記のアイコンをクリックしてください。

   ![](https://1076629499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fngfbmyfc37v4emfzEMM7%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. ダイアログにプロンプトを入力し、**テストする** をクリックし、動作をご確認ください。

   ![](https://1076629499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fngfbmyfc37v4emfzEMM7%2Fuploads%2Fgit-blob-72ef9d8795d6fa42abc28b255d0812c7b508eb4b%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.53.13.png?alt=media)
3. アサーションの動作を確認したら **保存** をクリックしてください。シナリオにプロンプトアサーションステップが追加されます。

なお、プロンプトアサーションは、画面に表示された見た目を元に判定する機能であるため、ボタンが非活性であるかどうかなど機能動作の検証はできません。

## テスト結果でプロンプトアサーションステップを確認する

テスト結果詳細画面の「See the detail」右横にあるはてなマークにカーソルを当てると、指定したプロンプトに対してどのような判定を行ったか、またその判定の理由を確認することが可能です。

![](https://1076629499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fngfbmyfc37v4emfzEMM7%2Fuploads%2Fgit-blob-d255f054b9efcf3e290a3ab8dea83e31b31e8e0e%2FScreenshot%202026-02-17%20at%2015.36.18.png?alt=media)

## プロンプトアサーションを効果的に利用するコツ

曖昧な指示をしている場合、アサーション結果が安定しなかったり成功として問題ないのに失敗となったりまたその逆と判定されることがあります。そのため、できるだけ明確に指示を記述することをオススメします。また、明確な指示をしている場合もハルシネーションが発生し意図しない結果となる可能性があります。そのため、もし[MLアサーション](https://help.autify.com/nocode-mobile/using-autify-nocode-mobile/scenario-creation-and-maintenance/ml-assertion.md)で対応できる検証については、MLアサーションをご利用ください。


---

# 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/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.
