Docs : ユーザーマニュアル : Response List

応答リスト

概要

対応リストがボットのリブレのテキストファイル形式を定義するためのボットの対応です。 対応リストがリストの質疑応答のペアになっています。 各フレーズ分離による新ライン、質疑応答リストを分離による空行します。 またタグに対応メタデータなどのキーワードに影響を与えたときの応答を使用します。 対応リストの列車がボットです。 ボットは自動的に起動してベストマッチングの対応のための質問、質問をする必要のない正確な試みを十分に似たキーワードを含むすべます。

対応タグ

タグ 説明
質問 定義の問題をもたらしていました。 必要ありません、最初の行の後に空行を仮定しているのです。
パターン: を定義する質問としてのパターンです。 パターンにワイルドカードその他の野生のカードを使用します。
応答: を定義します。 必要ありません、ライン後の問題として想定されます。
テンプレート: を定義する対応のテンプレートを作成します。 ことができます自己埋め込みコード内で{}ブラケットのためのシミュレーションです。
できます況感も良い/悪いの言葉です。
条件: 任意で来ることができるアクセスの条件で自己のコードを行い、評価しなければならなtrueに対応する利用です。
考: 任意を与えることができます'こしているコードを自己を評価される時に応答が使用される。
コマンド: 任意を与えることができますJSONコマンド(コード)を評価し、クライアントに返される支援にゲームや仮想案内もあります。
トピック: 任意を与えることができます話題分類に対応します。
要するトピック: 場合はトピックは必要に応答を使用しているときは、話題になります。
専用のトピック: 場合には話題独占のみの対応などの課題が用いられて話題になります。
ラベル: 任意を与えることができますラベルの再利用に対応しています。
キーワード: 任意で来ることができるアクセスのキーワードからの質問への影響がありますので、ま対応致します。
が必要です: 任意で来ることができるアクセスに必要な単語からの質問に対して必要となる対応を致します。
感情: することができ、感情に対応します。
行動: できますアクションに対応します。
ポージング: することができるポーズに対応します。
スピーカー: 任意で来ることができるアクセスへの対応る場合は、使用電流応答はすでに使用されている。
ないリピート 必要に応答またはフレーズのみ使用されます。
前: 任意を与えることができます前回の対応への対応のコンテキストです。
要する前: 必要に応答にのみ使用する場合は前回の対戦は前回の対応です。
信: 信頼できる場合に使用されることの応答が明らかにされていません。 のマッチング応答と最高の信頼を使用します。

question:

に対応できるであろうと言葉が自動的に合わせた同様の質問とすることもできます。 パターンに合わせたかの順に単語をパターンは、ワイルドカード文字などの*を含めることもできます。 通常で使うようになりましたボットを決めた場合に質問を一致させる必要があることもでき追加のキーワードに必要な言葉を改善が問題とは一致します。 入力パターンをご利用のパターン:タグです。

what is your name
question: what is your name
pattern: What is *

response:

に対応できるフレーズに、を含むことができHTMLや豊富なコンテンツ含む画像、映像、ボタン、または対応できるテンプレートを作成します。 テンプレートは対応することができ、自。 任意のコード内で{}テンプレートが実行され、結果が印刷に対応します。 入力テンプレート用のテンプレート:タグを入力の自己コード内で{}ットに固定して使用します。

My name is Julie.
My name is <b≷Julie</b≷.
response: My name is Julie.
template: My name is {#self.name}.
template: The date is {Date.date()}.

keywords:

Keywords are important words in the question that should influence when the response is used.

// Keywords are used to allow this response to be used for any questions on hockey or spinach.
question: do you like hockey
response: Hockey is my favorite sport.
keywords: hockey

question: what do you love
response: I love hockey!
keywords: love luv like adore

question: do you like field hockey
response: I only play ice hockey.
keywords: "field hockey"

question: i love spinach
response: Spinach is is my favorite food.
keywords: spinach

A keyword will be used by the bot to select the best response. Keywords let some words count for more than other words. In the example, the bot knows two responses, how will it respond to the phrase "I love hockey"? Without the keywords the bot would probably match this question with "I love spinach", but since hockey is a keyword, it will instead match it with "Do you like hockey?".

If the response has no defined required words, then the keywords will also be required for the response match. So "I love hockey" would not be matched with "I love spinach." because it is missing the keyword.

If you keywords has many similar words. You can list them all as keywords to match any of the words. You could also define these words a synonyms, which may be a better option.

You can also use compound words are keywords. A compound keyword must have all the words in the order to be used. For a compound keyword just wrap the words in "quotes".

Be careful using too many keywords. If every word is a keyword, then their value is diminished. Never make common words like "the", "a", "he", "what" keywords, if you require one of these words for a match use a required word instead.

You can also review all of your bot's keywords by searching for 'words' and restrict to 'keywords'. This lets you remove a word from being a keyword if you added it by mistake.

required:

A required word is a word that is required to be in the question for a specific response.

// This example requires the words 'like' and 'hockey'.
question: do you like hockey
response: Yes, I like hockey.
required: like hockey

// This example requires the compound word 'ice hockey'.
question: do you like ice hockey
response: Yes, I like ice hockey.
required: "ice hockey"

// This example requires one of the words 'like' or 'love', and 'hockey'.
question: do you like ice hockey
response: Yes, I like ice hockey.
required: (like love) hockey

// This example requires a pattern.
question: are you okay
response: Yes, I am okay.
required: Pattern("^ are you (ok okay)")

A required word can be used to ensure the bot does not choose a response if the required word is missing from the question. For example the question "Do you play hockey?" would normally be matched to this response, but because it is missing the required word "like", it will not be considered as a match.

All of the required words must be contained in the question in order for the response to be used. Required words also supports lists, compound words, and patterns. To require one of a set of words a list can be used using brackets i.e. (like love). To require a compound word quotes are used i.e. "hello world". To require a pattern enter the pattern i.e. Pattern("what is *").

Previous

A previous responses is the bot's preceding response. Previous responses can be used to give a response a context.

// This example uses previous to give different answers to 'yes' depending on the context.
question: yes
response: Great, wanna go out sometime?
require previous: Are you single?

question: yes
response: I am please to hear that.
require previous: Are you happy?

The question "Yes" has multiple responses. The bot can use the previous response to choose the best response. You can also invalidate a previous response to ensure the bot does not use a response if the previous response was preceding.

A previous response can either be 'required' or optional. If required, the response will never be used unless one of the previous response matches. If optional (default) the response is given precedence if the previous response matches, but can still be used if the previous does not match.

topic:

A topic is the general topic category for the response. For example a response on a hockey related question would belong to the "hockey" topic. You can use topics to categories your responses and give the bot additional context. If the bot has multiple responses to a question, it will use the one that matches the current topic.

Topics can be either optional or required. The response topic is optional by default, it you click on 'Require Topic', then the response will only be used if that topic is active in the conversation. If optional the topic will be set as active for the conversation, until a new topic is set.

Topics can also be defined as exclusive. An exclusive topic defines an isolated conversational space. For a normal topic that is not exclusive the bot can still use responses that do not have the same topic, but responses with the active topic will be given precedence over responses without a topic. For exclusive topics only response that have the same topic as the active topic will be used. No other responses will be used (other than possibly the default response if there is no topic default).

Topics can also be set on greetings to start the conversation with a topic. Topics can be set on default responses to provide a different response when that topic is active.

// Categorizes the product response.
question: what are your products
response: Our products include ACME CRM and ACME ERP.
topic: products

// Use an exclusive topic to define a joke conversational dialog.
question: joke
response: Knock knock.
exclusive topic: joke

question who is there
response: Boo.
require topic: joke

question: boo who
response: Don't cry. lol
require topic: joke
think: conversation.topic = null;

default: Say 'Who is there?'
require topic: joke

default: Say 'Boo who?'
require topic: joke
previous: boo

label:

A response can be given an intent label to let you reuse the same response in other questions. You can also use labels in a response's previous.

// Use a label to reuse the common products response.
question: products
response: Our products include ACME CRM and ACME ERP.
label: #products

question: what are your products
response: #products

question: what software do you sell
response: #products

question: are they good
response: Our products are the best in the world.
previous: #products

on repeat:

If the user asks the same question, or similar questions multiple times, you may want your bot to give a different response the second time. On repeat lets you set one or many responses to use the second time that response is triggered in the same conversation. You can also set 'No Repeat' to never repeat the response in the same conversation.

// Offer to escalate the issue if the user repeatedly asks for help.
question: help
response: How can I help you?
on repeat: What is the issue that you are having?
on repeat: Would you like me to have a support staff contact you?

question: goodbye
response: Before you go, would you like to take a survey?
no repeat:

question: goodbye
response: Goodbye.

condition:

Conditions let you enter Self code that must evaluate to true for the response to be used. This is an advanced properties as it requires you understand Self (a dialect of JavaScript), but can be used to do very powerful things.

// Response to goodbye differently based on the time of day.
question: goodbye
response: Goodnight.
condition: Date.get(#hour, Date.time()) > 18

question: goodbye
response: Goodbye.

think:

Think let you enter Self code that is executed when the response is used. This is an advanced properties as it requires you understand Self (a dialect of JavaScript), but can be used to do very powerful things.

// Track the user's name.
pattern: my name is *
template: Pleased to meet you {star}.
think: speaker.name = star;

question: what is my name
template: Your name is {speaker.name}.

question: can we change the subject
response: Sure, what would you like to talk about?
think: conversation.topic = null;

confidence:

You can enter multiple responses for the same question. The bot will use the response that it is the most confident in for the current conversational context. By default a response is given a confidence level of 90%, but you can customize the value. Note that in a group discussion such as when the bot is added to a chatroom, or on Twitter, the bot will only use responses that have >=90% confidence.

sentiment:

You can associate a user question or phrase, or individual words with sentiment (good vs bad). Sentiment can be used to track how the user is feeling about the current conversation. The sentiment statistic is tracked by your bot daily and can be graphed from its Analytics page.

question: thank you
response: You are most welcome.
keywords: thank
sentiment: good

question: you suck
response: Sorry, I am doing my best. Would you like me have someone contact you via email?
keywords: suck
sentiment: bad

word: suck
sentiment: bad

word: great
sentiment: great

次に、会話の流れ

次の質問に回答できる対応のフォローまでの質問と会話の流れです。 会話の流れは、インデントに次のフォローアップ問題に対応します。 利用できるタブは4つのスペースindentsます。 また複数のインデントレベルを定義する話です。

A respones次に問題を定義します孤立した会話スペースです。 ボットでのみお選び次の応答に対応します。 を定義するデフォルト対応のデフォルト:タグです。 場合は、ボットネットワーユーザーの質問と来るかというと、検索の対応が親会社、それ以外の利用、ボットのデフォルト対応します。

次は前のものとは異なり前は分離されに対応します。 の文脈となることが期待される応答は、ボットのない使用に対応以外のコンテキストは次対応します。 ここで定義すら単離および入れ子の会話です。

question: help
response: Do you want help with <button>web</button> or <button>mobile</button>
keywords: help

	question: web
	response: Is you issue with <button>HTML</button> or <button>JavaScript</button>?

		question: html
		response: See https://www.w3schools.com/html

		question: javascript
		response: See https://www.w3schools.com/js

	question: mobile
	response: Are you using <button>Android</button> or <button>iOS</button>?

		question: android
		response: See https://www.android.com

		question: ios
		response: See https://developer.apple.com/ios

	question: quit
	response: Okay. Let me know if you need further help.

	default: Please specify <button>web</button> or <button>mobile</button>, or type <button>quit</button> if you do not need help.

ご挨拶

挨拶では、ボットの初期対応の新しい会話です。 ご挨拶できるものと同じタグとして対応します。 を定義するの挨拶のご挨拶:タグを使用します。

greeting: Welcome to my website. I am Julie, how may I be of service?

デフォルト対応

場合は、ボットなものは見出せないマッチングついて調査しなければならずユーザの入力で、デフォルト対応します。 デフォルト対応できるものと同じタグとして対応します。 を定義するデフォルト対応のデフォルト:タグを使用します。

default: Sorry, I do not understand.
			
default: Sorry, I do not understand. Please email sales@acme.com for more information.
topic: Sales

フレーズ

フレーズを定義することができ准感情、情緒があり、アクションポーズをフレーズです。

thanks for the help
sentiment: good

you are not helping me
sentiment: bad

言葉

単語を定義することができ准感情、情緒があり、同義語です。 単語ることもできるキーワードは、トピックや専用です。

word: good
sentiment: good
synonyms: great wonderful cool amazing 

word: bad
sentiment: bad
synonyms: sucks terrible horrible

word: aiml
keyword: true
topic: true

タグの単語

タグ 説明
単語: を定義します。
任意することができ、感情、言葉です。
感情: 任意することができ、感情、言葉です。
キーワード: を定義する言葉をキーワードです。
同義語: 任意を与えることができますの代名詞のように類似する文言からのトリガに同じ対応します。
トピック: を定義する言葉を話題です。
専用のトピック: を定義する言葉を見ます。

参照