# 自然言語の入力設定

お客様はときどき、Alliとの会話の途中で（または最初から）、チャットの流れを無視して質問をしたいと感じることがあります。

または、ボタンをクリックするよりも質問をタイプ入力する方を好むというケースもあるかと存じます。

この度、自然言語の入力設定により、Alliはそのようなケースにも対応できるようになりました。

<br>

<figure><img src="https://i0.wp.com/blog.allganize.ai/content/images/2020/01/natural-language-input-2.gif?resize=233%2C370&#x26;ssl=1" alt=""><figcaption></figcaption></figure>

その方法をご案内します。

この機能をオンにするには、\[設定] > \[全般] の順にナビゲートし、自然言語入力までスクロールします。

<figure><img src="https://i0.wp.com/guide.allganize.ai/wp-content/uploads/2022/05/%E8%87%AA%E7%84%B6%E8%A8%80%E8%AA%9E%E5%85%A5%E5%8A%9B%E8%A8%AD%E5%AE%9A1.png?resize=628%2C206&#x26;ssl=1" alt=""><figcaption></figcaption></figure>

このオプションがオンになっていると、Alliはチャットフローの最中のどこでも自然言語入力できるようにし、入力内容を処理します。検索は次の順で行われます。

* **類似オプション:** 表示された使用可能なボタンのオプションから、最も類似するオプションを検索します。「質問をする」ノードのQ\&A質問候補またはボタンのオプションがその例です。
* **Q\&A:** Q\&Aデータベースからの直接の回答を検索します。Q\&A構成における直接回答の閾値が適用されます。
* **雑談会話**: 雑談会話の回答を検索します。詳細については[雑談会話のユーザーガイド](https://docs.allganize.ai/alli-userguide/miscellaneous/small-talk)を参照してください。

上記のいずれからも検索結果が得られない場合は、「マッチなしのメッセージ」 にカスタマイズされたメッセージが表示されます。

## 上級ユーザー向けのメモ: <a href="#note-for-advanced-users" id="note-for-advanced-users"></a>

この機能がオンにされている場合は、リアルタイムの[文字列検証](https://docs.allganize.ai/alli-userguide/settings/variables/string-validation)は機能しませんが、自然言語入力をチェックした後に検証は背景で機能し、入力内容が有効でない場合は、検証エラーメッセージを表示します。

自然言語入力を無視し、特定の「質問をする」ノードのリアルタイム検証を有効にするには、目標変数が文字列タイプに設定されている場合に表示される「入力をそのまま利用する」をオンにします。

<figure><img src="/files/Pvx8WkTAMeYVYwmfPjS4" alt="" width="329"><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/alliyzgaido/settings/general/natural-language-input-setting.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.
