# LLMとチャット

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

<figure><img src="/files/pNF2cC95xIiniBoLo4NW" alt=""><figcaption></figcaption></figure>

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

LLMとチャットアプリでは、ユーザーが入力した内容に基づいて、LLMとチャットをすることができます。

### ユーザーが入力を実施するノード（質問応答ノード） <a href="#qa-node" id="qa-node"></a>

ユーザーに入力を求めます。

<figure><img src="/files/zIJFGfW1W0cFWQR8Qhul" alt="" width="563"><figcaption></figcaption></figure>

* 応答スタイル：テキスト

ユーザーの入力した情報を下記の変数に保存します。

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

### LLMが文章を生成(LLM実行ノード) <a href="#send-message-node1" id="send-message-node1"></a>

LLM実行ノードでは質問応答ノードでユーザーが入力した内容をプロンプトで指定し実行しています。

* ベースモデル：OPENAI GPT-4 TURBO
* プロンプト：LLMと会話

<figure><img src="/files/nWHCRasVVTKJfxr1y5EU" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="/files/SSMmoqCjFWyeABAitmhC" alt=""><figcaption></figcaption></figure>


---

# 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://docs.allganize.ai/alli-llm-app-market/app-market/default-apps/app-all/llm-chat.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.
