> For the complete documentation index, see [llms.txt](https://docs.allganize.ai/alli-llm-app-market/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.allganize.ai/alli-llm-app-market/manual/for_admin/default-apps/legal-contracts/revenue-stamp-checker.md).

# 印紙チェッカー

印紙チェッカーアプリでは、ユーザーがアップロードした契約書から印紙金額をチェックすることができます。

## フローの全体図 <a href="#overall" id="overall"></a>

<figure><img src="https://3244404108-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FR2CRA2CisD1pVQUgqd1g%2Fuploads%2F6m0HmDnoOryg4UIDgIeb%2Fimage.png?alt=media&amp;token=4c932680-fbd6-410d-b40d-b4387955f89f" alt=""><figcaption></figcaption></figure>

## 概要 <a href="#outline" id="outline"></a>

印紙チェッカーアプリは、初めにユーザーが契約書のドキュメントをアップロードし、その内容についてLLMがプロンプトで指定されたチェック項目に基づいてチェックを行います。&#x20;

### 契約書のドキュメントのアップロード(LLMインプットノード) <a href="#llm-input-node" id="llm-input-node"></a>

LLMインプットノードでユーザーがアップロードした契約書のドキュメントの内容を下記の変数に保存しています。

変数：＠DOC1

* 変数種別：会話変数
* タイプ：ドキュメント

<figure><img src="https://3244404108-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FR2CRA2CisD1pVQUgqd1g%2Fuploads%2FJMVNyRWLBRJ0VEhSaMFL%2Fimage.png?alt=media&amp;token=561c100b-1f09-4573-92cf-222dc01be009" alt="" width="563"><figcaption></figcaption></figure>

### 印紙金額をチェック（LLM実行ノード) <a href="#llm-node" id="llm-node"></a>

LLM実行ノードではユーザーがアップロードした、契約書のドキュメントの内容を保存した変数情報(DOC1)をプロンプトで指定し実行しています。

* ベースモデル：OPENAI GPT-3.5 TURBO 16k
* プロンプト：アップロードしたファイルから印紙金額をチェック

<figure><img src="https://3244404108-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FR2CRA2CisD1pVQUgqd1g%2Fuploads%2FUQqZVeeg4BzOBk2pvtGX%2Fimage.png?alt=media&amp;token=488994b3-c58f-487e-ad17-3f6e39acf8d2" alt="" width="367"><figcaption></figcaption></figure>

<figure><img src="https://3244404108-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FR2CRA2CisD1pVQUgqd1g%2Fuploads%2FkRg57BdVPNRQwOwVlRgT%2Fimage.png?alt=media&amp;token=900fe437-e377-4c6b-a623-4c8d05ba8bdc" alt=""><figcaption></figcaption></figure>

また、実行の結果を下記の変数に保存しています。

変数：＠LLM\_RESULT

* 変数種別：会話変数
* タイプ：文字列

### 結果の表示（会話応答ノード) <a href="#send-message-node" id="send-message-node"></a>

LLM実行ノードの実行結果が保存された変数情報(@LLM\_RESULT)を、会話応答ノードで表示しています。

<figure><img src="https://3244404108-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FR2CRA2CisD1pVQUgqd1g%2Fuploads%2F4ikeZoBlNw6hi2RBfkGC%2Fimage.png?alt=media&amp;token=eedf8542-6600-4f08-8887-5aa8aaaeb64e" alt="" width="563"><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 by asking a question.

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

```
GET https://docs.allganize.ai/alli-llm-app-market/manual/for_admin/default-apps/legal-contracts/revenue-stamp-checker.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.
