BotTemplate
親種別
ファイルのサフィックスおよびディレクトリの場所
BotTemplate コンポーネントのサフィックスは .botTemplate で、botTemplates フォルダに保存されます。
バージョン
BotTemplate コンポーネントは、API バージョン 55.0 以降で使用できます。
特別なアクセスルール
BotTemplate を使用できるのは、組織でチャットと Einstein Bots が有効になっている場合のみです。
項目
| 項目名 | 説明 |
|---|---|
| botDialogGroups |
|
| botDialogs |
|
| conversationLanguages |
|
| contextVariables |
|
| conversationSystemDialogs |
|
| conversationVariables |
|
| description |
|
| entryDialog |
|
| icon |
|
| mainMenuDialog |
|
| masterLabel |
|
| mlDomain |
|
| richContentEnabled |
|
BotDialogGroup
このボットバージョンのダイアロググループのリスト。
| 項目名 | 説明 |
|---|---|
| description |
|
| developerName |
|
| label |
|
BotDialog
このボットテンプレートのダイアログのリスト。
| 項目名 | 説明 |
|---|---|
| botDialogGroup |
|
| botSteps |
|
| description |
|
| developerName |
|
| label |
|
| mlIntent |
|
| mlIntentTrainingEnabled |
|
| showInFooterMenu |
|
BotStep
ダイアログの一部として実行するステップ。
| 項目名 | 説明 |
|---|---|
| booleanFilter |
|
| botInvocation |
|
| botMessages |
|
| botNavigation |
|
| botStepConditions |
|
| botSteps |
|
| botVariableOperation |
|
| conversationRecordLookup |
|
| conversationSystemMessage |
|
| messageDefinition |
|
| stepIdentifier |
|
| type |
|
BotInvocation
Invocation 種別の BotStep で使用するボット呼び出し。
| 項目名 | 説明 |
|---|---|
| invocationActionName |
|
| invocationActionType |
|
| invocationMappings |
|
BotInvocationMapping
ボット呼び出しの対応付けのリスト。
| 項目名 | 説明 |
|---|---|
| parameterName |
|
| recordName |
|
| type |
|
| value |
|
| variableName |
|
| variableType |
|
BotMessage
Message 種別の BotStep で使用するボットメッセージ。
| 項目名 | 説明 |
|---|---|
| message |
|
| messageIdentifier |
|
BotStepCondition
Group 種別の BotStep に関連付けられた BotStep 条件のリスト。
| 項目名 | 説明 |
|---|---|
| leftOperandName |
|
| leftOperandType |
|
| operatorType |
|
| rightOperandValue |
|
BotVariableOperation
VariableOperation 種別の BotStep で使用するボット変数操作。
| 項目名 | 説明 |
|---|---|
| askCollectIfSet |
|
| autoSelectIfSingleChoice |
|
| botInvocation |
|
| botMessages |
|
| botQuickReplyOptions |
|
| botVariableOperands |
|
| invalidInputBotNavigation |
|
| optionalCollect |
|
| quickReplyOptionTemplate |
|
| quickReplyType |
|
| quickReplyWidgetType |
|
| retryMessages |
|
| sourceVariableName |
|
| sourceVariableType |
|
| type |
|
| variableOperationIdentifier |
|
BotQuickReplyOption
Collect 種別であり quickReplyType が Static のボット変数操作で使用する静的選択肢オプションのリスト。
| 項目名 | 説明 |
|---|---|
| literalValue |
|
| quickReplyOptionIdentifier |
|
BotVariableOperand
Set または Unset 種別のボット変数に関連付けられたボット変数オペランドのリスト。
| 項目名 | 説明 |
|---|---|
| disableAutoFill |
|
| sourceName |
|
| sourceType |
|
| sourceValue |
|
| targetName |
|
| targetType |
|
ConversationRecordLookup
リンク済みの会話に関連する情報。現在は、Lightning Knowledge でのみ機能します。
| 項目名 | 説明 |
|---|---|
| SObjectType |
|
| conditions |
|
| filterLogic |
|
| lookupFields |
|
| maxLookupResults |
|
| sortFieldName |
|
| sortOrder |
|
| sourceVariableName |
|
| sourceVariableType |
|
| targetVariableName |
|
ConversationRecordLookupCondition
ConversationRecordLookup に関連付けられた条件のリスト。
| 項目名 | 説明 |
|---|---|
| leftOperand |
|
| operatorType |
|
| rightOperandName |
|
| rightOperandType |
|
| rightOperandValue |
|
| sortOrder |
|
ConversationRecordLookupField
会話レコードの検索で使用される項目。
| 項目名 | 説明 |
|---|---|
| fieldName |
|
ConversationSystemMessage
ボットステップのアクション (エージェントへの転送やチャットの終了など) を表すシステムメッセージ。
| 項目名 | 説明 |
|---|---|
| systemMessageMappings |
|
| type |
|
ConversationSystemMessageMapping
システムメッセージについて提供される追加情報を示す対応付けのリスト。
| 項目名 | 説明 |
|---|---|
| mappingType |
|
| parameterType |
|
| variableName |
|
ConversationDefinitionRichMessage
拡張リンクなどのメッセージングコンポーネントを参照するための設定の詳細を表します。
| 項目名 | 説明 |
|---|---|
| messageDefinitionMappings |
|
| messageDefinitionName |
|
ConversationContextVariable
現在のボットのローカルのコンテキスト変数。
| 項目名 | 説明 |
|---|---|
| SObjectType |
|
| contextVariableMappings |
|
| dataType |
|
| developerName |
|
| label |
|
ConversationContextVariableMapping
コンテキスト変数、チャネル種別、および sObject 項目間の対応付けを表します。
| 項目名 | 説明 |
|---|---|
| SObjectType |
|
| fieldName |
|
| messageType |
|
ConversationSystemDialog
ダイアログに割り当てられているシステム機能。
| 項目名 | 説明 |
|---|---|
| dialog |
|
| type |
|
ConversationVariable
顧客から収集した特定のデータを保存するコンテナ。ダイアログアクション内の変数を入力と出力の両方で使用できます。
| 項目名 | 説明 |
|---|---|
| SObjectType |
|
| collectionType |
|
| dataType |
|
| developerName |
|
| label |
|
LocalMlDomain
現在のボットテンプレートのローカルの Einstein Intent セット。
| 項目名 | 説明 |
|---|---|
| label |
|
| mlIntents |
|
| mlSlotClasses |
|
| name |
|
MlIntent
Einstein Intent セットの Intent。
| 項目名 | 説明 |
|---|---|
| description |
|
| developerName |
|
| label |
|
| mlIntentUtterances |
|
| relatedMlIntents |
|
MlIntentUtterance
このインテントへの顧客の入力。
| 項目名 | 説明 |
|---|---|
| language |
|
| utterance |
|
MlRelatedIntent
このインテントへの顧客の入力を展開するために使用する Einstein Intent セットのインテント。ローカルの Einstein Intent セットのインテントにのみ、関連するインテントがあります。
| 項目名 | 説明 |
|---|---|
| relatedMlIntent |
|
MlSlotClass
この Einstein Intent セットのエンティティ。
| 項目名 | 説明 |
|---|---|
| dataType |
|
| description |
|
| developerName |
|
| extractionRegex |
|
| extractionType |
|
| label |
|
| mlSlotClassValues |
|
MlSlotClassValue
Value 種別のエンティティに関連付けられたエンティティ値。
| 項目名 | 説明 |
|---|---|
| synonymGroup |
|
| value |
|
SynonymGroup
同義の単語または語句のグループを表します。
| 項目名 | 説明 |
|---|---|
| languages |
|
| terms |
|
宣言的なメタデータの定義のサンプル
BotTemplate コンポーネントの例を次に示します。
1<?xml version="1.0" encoding="UTF-8"?>
2<BotTemplate xmlns="http://soap.sforce.com/2006/04/metadata">
3 <botDialogGroups>
4 <developerName>dialog_group1</developerName>
5 <label>dialog group1</label>
6 </botDialogGroups>
7 <botDialogs>
8 <developerName>Test_Dialog_1</developerName>
9 <label>Test_Dialog_1</label>
10 <showInFooterMenu>false</showInFooterMenu>
11 </botDialogs>
12 <botDialogs>
13 <developerName>Test_Dialog_2</developerName>
14 <label>Test_Dialog_2</label>
15 <showInFooterMenu>false</showInFooterMenu>
16 </botDialogs>
17 <botDialogs>
18 <botSteps>
19 <botMessages>
20 <message>Hi! I'm your helpful bot.</message>
21 <messageIdentifier>m1</messageIdentifier>
22 </botMessages>
23 <stepIdentifier>s1</stepIdentifier>
24 <type>Message</type>
25 </botSteps>
26 <botSteps>
27 <conversationRecordLookup>
28 <SObjectType>Account</SObjectType>
29 <conditions>
30 <leftOperand>Account.Phone</leftOperand>
31 <operatorType>Equal</operatorType>
32 <rightOperandValue>Value</rightOperandValue>
33 <sortOrder>0</sortOrder>
34 </conditions>
35 <lookupFields>
36 <fieldName>Account.Phone</fieldName>
37 </lookupFields>
38 <lookupFields>
39 <fieldName>Account.OwnerId</fieldName>
40 </lookupFields>
41 <maxLookupResults>1</maxLookupResults>
42 <sourceVariableName>_LastCustomerInput</sourceVariableName>
43 <sourceVariableType>ConversationVariable</sourceVariableType>
44 <targetVariableName>MyCustomVariable</targetVariableName>
45 </conversationRecordLookup>
46 <stepIdentifier>s2</stepIdentifier>
47 <type>RecordLookup</type>
48 </botSteps>
49 <botSteps>
50 <botNavigation>
51 <botNavigationLinks>
52 <targetBotDialog>Main_Menu</targetBotDialog>
53 </botNavigationLinks>
54 <type>Redirect</type>
55 </botNavigation>
56 <stepIdentifier>s3</stepIdentifier>
57 <type>Navigation</type>
58 </botSteps>
59 <developerName>Welcome</developerName>
60 <label>Welcome</label>
61 <mlIntent>Welcome</mlIntent>
62 <showInFooterMenu>false</showInFooterMenu>
63 </botDialogs>
64 <botDialogs>
65 <botSteps>
66 <stepIdentifier>s4</stepIdentifier>
67 <type>Wait</type>
68 </botSteps>
69 <developerName>Main_Menu</developerName>
70 <label>Main Menu</label>
71 <mlIntent>Main_Menu</mlIntent>
72 <showInFooterMenu>false</showInFooterMenu>
73 </botDialogs>
74 <botDialogs>
75 <botSteps>
76 <botMessages>
77 <message>Goodbye! Click the "End Chat" button to end this chat</message>
78 <messageIdentifier>m2</messageIdentifier>
79 </botMessages>
80 <stepIdentifier>s6</stepIdentifier>
81 <type>Message</type>
82 </botSteps>
83 <botSteps>
84 <stepIdentifier>s7</stepIdentifier>
85 <type>Wait</type>
86 </botSteps>
87 <developerName>End_Chat</developerName>
88 <label>End Chat</label>
89 <mlIntent>End_Chat</mlIntent>
90 <showInFooterMenu>false</showInFooterMenu>
91 </botDialogs>
92 <botDialogs>
93 <botSteps>
94 <botMessages>
95 <message>Unfortunately, there are no agents available at the moment</message>
96 <messageIdentifier>m3</messageIdentifier>
97 </botMessages>
98 <stepIdentifier>s8</stepIdentifier>
99 <type>Message</type>
100 </botSteps>
101 <botSteps>
102 <stepIdentifier>s9</stepIdentifier>
103 <type>Wait</type>
104 </botSteps>
105 <developerName>No_Agent_Available</developerName>
106 <label>No Agent</label>
107 <showInFooterMenu>false</showInFooterMenu>
108 </botDialogs>
109 <contextVariables>
110 <contextVariableMappings>
111 <SObjectType>LiveChatTranscript</SObjectType>
112 <fieldName>LiveChatTranscript.ChatKey</fieldName>
113 <messageType>WebChat</messageType>
114 </contextVariableMappings>
115 <dataType>Text</dataType>
116 <developerName>ChatKey</developerName>
117 <label>Chat Key</label>
118 </contextVariables>
119 <conversationLanguages>en_US</conversationLanguages>
120 <conversationSystemDialogs>
121 <dialog>No_Agent_Available</dialog>
122 <type>TransferFailed</type>
123 </conversationSystemDialogs>
124 <conversationSystemDialogs>
125 <dialog>Test_Dialog_1</dialog>
126 <type>ErrorHandling</type>
127 </conversationSystemDialogs>
128 <conversationVariables>
129 <dataType>Text</dataType>
130 <developerName>TestVariableXYZ</developerName>
131 <label>TestVariableXYZ</label>
132 </conversationVariables>
133 <conversationVariables>
134 <collectionType>List</collectionType>
135 <dataType>Object</dataType>
136 <developerName>MyCustomVariable</developerName>
137 <label>MyCustomVariable</label>
138 </conversationVariables>
139 <description>Description of BotTemplate</description>
140 <entryDialog>Test_Dialog_1</entryDialog>
141 <icon>AA8qwqXXXXX</icon>
142 <mainMenuDialog>Test_Dialog_2</mainMenuDialog>
143 <masterLabel>Astro Bot</masterLabel>
144 <mlDomain>
145 <label>Astro Bot</label>
146 <mlIntents>
147 <developerName>End_Chat</developerName>
148 <label>End Chat</label>
149 <mlIntentUtterances>
150 <utterance>Utterance1</utterance>
151 <language>es</language>
152 </mlIntentUtterances>
153 <mlIntentUtterances>
154 <utterance>Utterance2</utterance>
155 <language>es</language>
156 </mlIntentUtterances>
157 <mlIntentUtterances>
158 <utterance>Utterance3</utterance>
159 <language>es</language>
160 </mlIntentUtterances>
161 </mlIntents>
162 <mlIntents>
163 <developerName>Main_Menu</developerName>
164 <label>Main Menu</label>
165 <description>Main Menu Intent</description>
166 </mlIntents>
167 <mlIntents>
168 <developerName>Welcome</developerName>
169 <label>Welcome</label>
170 <description>Welcome Intent</description>
171 </mlIntents>
172 <name>Astro_Bot_ld1</name>
173 </mlDomain>
174 <richContentEnabled>true</richContentEnabled>
175</BotTemplate>前の定義を参照する package.xml の例を次に示します。
1<?xml version="1.0" encoding="UTF-8"?>
2<Package xmlns="http://soap.sforce.com/2006/04/metadata">
3 <types>
4 <members>*</members>
5 <name>BotTemplate</name>
6 </types>
7 <version>55.0</version>
8</Package>マニフェストファイル内のワイルドカードのサポート
このメタデータ型では、package.xml マニフェストファイル内のワイルドカード文字 * (アスタリスク) がサポートされます。マニフェストファイルの使用についての詳細は、「zip ファイルを使用したメタデータのリリースと取得」を参照してください。