BotVersion
親種別
ファイルのサフィックスおよびディレクトリの場所
BotVersion コンポーネントのサフィックスは .bot で、bot フォルダーに保存されます。BotVersion はボットの最上位の子で、そのサフィックスとファイルディレクトリを共有します。
バージョン
BotVersion コンポーネントは、API バージョン 43.0 以降で使用できます。
特別なアクセスルール
BotVersion を使用できるのは、組織でチャットと Einstein Bots が有効になっている場合のみです。
項目
| 項目名 | 説明 |
|---|---|
| botDialogGroups |
|
| botDialogs |
|
| conversationGoals |
|
| conversationSystemDialogs |
|
| conversationVariables |
|
| entryDialog |
|
| intentDisambiguationEnabled |
|
| intentV3Enabled |
|
| knowledgeFallbackEnabled |
|
| mainMenuDialog |
|
| nlpProviders |
|
| responseDelayMilliseconds |
|
BotDialogGroup
このボットバージョンのダイアロググループのリスト。
| 項目名 | 説明 |
|---|---|
| description |
|
| developerName |
|
| label |
|
BotDialog
このボットバージョンのダイアログのリスト。
| 項目名 | 説明 |
|---|---|
| botDialogGroup |
|
| botSteps |
|
| description |
|
| developerName |
|
| isPlaceholderDialog |
|
| label |
|
| mlIntent |
|
| mlIntentTrainingEnabled |
|
| showInFooterMenu |
|
BotStep
ダイアログの一部として実行するステップ。
| 項目名 | 説明 |
|---|---|
| booleanFilter |
|
| botInvocation |
|
| botMessages |
|
| botNavigation |
|
| botStepConditions |
|
| botSteps |
|
| botVariableOperation |
|
| conversationRecordLookup |
|
| conversationStepGoalMappings |
|
| 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 |
|
| successMessages |
|
| type |
|
| variableOperationIdentifier |
|
BotQuickReplyOption
Collect 種別であり quickReplyType が Static のボット変数操作で使用する静的選択肢オプションのリスト。
| 項目名 | 説明 |
|---|---|
| literalValue |
|
| quickReplyOptionIdentifier |
|
BotVariableOperand
Set または Unset 種別のボット変数に関連付けられたボット変数オペランドのリスト。
| 項目名 | 説明 |
|---|---|
| disableAutoFill |
|
| sourceName |
|
| sourceType |
|
| sourceValue |
|
| targetName |
|
| targetType |
|
ConversationRecordLookup
リンク済みの会話に関連する情報。現在は、Lightning Knowledge でのみ機能します。API バージョン 46.0 以降で利用できます。
| 項目名 | 説明 |
|---|---|
| SObjectType |
|
| conditions |
|
| filterLogic |
|
| lookupFields |
|
| maxLookupResults |
|
| sortFieldName |
|
| sortOrder |
|
| sourceVariableName |
|
| sourceVariableType |
|
| targetVariableName |
|
ConversationRecordLookupCondition
ConversationRecordLookup に関連付けられた条件のリスト。API バージョン 51.0 以降で利用できます。
| 項目名 | 説明 |
|---|---|
| leftOperand |
|
| operatorType |
|
| rightOperandName |
|
| rightOperandType |
|
| rightOperandValue |
|
| sortOrder |
|
ConversationRecordLookupField
会話レコードの検索で使用される項目。API バージョン 46.0 以降で利用できます。
| 項目名 | 説明 |
|---|---|
| fieldName |
|
ConversationDefinitionStepGoalMapping
目標と BotStep との間の関連を表します。目標は一度に 1 つの BotStep およびダイアログにのみ関連付けることができます。API バージョン 57.0 以降で利用できます。
| 項目名 | 説明 |
|---|---|
| goalName |
|
ConversationSystemMessage
ボットステップのアクション (エージェントへの転送やチャットの終了など) を表すシステムメッセージ。API バージョン 46.0 以降で利用できます。
| 項目名 | 説明 |
|---|---|
| systemMessageMappings |
|
| type |
|
ConversationSystemMessageMapping
システムメッセージについて提供される追加情報を示す対応付けのリスト。API バージョン 46.0 以降で利用できます。
| 項目名 | 説明 |
|---|---|
| mappingType |
|
| parameterType |
|
| variableName |
|
ConversationDefinitionRichMessage
拡張リンクなどのメッセージングコンポーネントを参照するための設定の詳細を表します。API バージョン 54.0 以降で利用できます。
| 項目名 | 説明 |
|---|---|
| messageDefinitionMappings |
|
| messageDefinitionName |
|
ConversationDefinitionGoal
ボットバージョンに含まれる目標。API バージョン 57.0 以降で使用できます。
| 項目名 | 説明 |
|---|---|
| developerName |
|
| label |
|
ConversationSystemDialog
ダイアログに割り当てられているシステム機能。API バージョン 48.0 以降で利用できます。
| 項目名 | 説明 |
|---|---|
| dialog |
|
| type |
|
ConversationVariable
顧客から収集した特定のデータを保存するコンテナ。ダイアログアクション内の変数を入力と出力の両方で使用できます。API バージョン 44.0 以降で利用できます。
| 項目名 | 説明 |
|---|---|
| collectionType |
|
| dataType |
|
| developerName |
|
| label |
|
| SObjectType |
|
ConversationDefinitionNlpProvider
ボットバージョンに割り当てられる言語で使用される自然言語サービスを定義します。API バージョン 49.0 以降で利用できます。
| 項目名 | 説明 |
|---|---|
| language |
|
| nlpProviderName |
|
| nlpProviderType |
|
宣言的なメタデータの定義のサンプル
次に、BotVersion の例を示します。
1<?xml version="1.0" encoding="UTF-8"?>
2<Bot xmlns="http://soap.sforce.com/2006/04/metadata">
3 <botMlDomain>
4 <label>Astros Pizza</label>
5 <mlIntents>
6 <developerName>New_Order</developerName>
7 <label>New Order</label>
8 <mlIntentUtterances>
9 <utterance>Today is pie day so I want pie</utterance>
10 </mlIntentUtterances>
11 </mlIntents>
12 <mlSlotClasses>
13 <developerName>Size</developerName>
14 <extractionType>Value</extractionType>
15 <label>Size</label>
16 <mlSlotClassValues>
17 <synonymGroup>
18 <languages>en_US</languages>
19 <terms>Big</terms>
20 <terms>Extra Large</terms>
21 <terms>X-Large</terms>
22 <terms>Grande</terms>
23 <terms>Huge</terms>
24 </synonymGroup>
25 <value>Large</value>
26 </mlSlotClassValues>
27 </mlSlotClasses>
28 <name>Astros_Pizza_ld1</name>
29 </botMlDomain>
30 <botVersions>
31 <fullName>v1</fullName>
32 <botDialogGroups>
33 <developerName>Order_Management</developerName>
34 <label>Order Management</label>
35 </botDialogGroups>
36 <botDialogs>
37 <botDialogGroup>Order_Management</botDialogGroup>
38 <botSteps>
39 <botMessages>
40 <message>🍕🍕🍕Pizza Time! 🍕🍕🍕</message>
41 <messageIdentifier>Greeting_Message</messageIdentifier>
42 </botMessages>
43 <stepIdentifier>Greeting</stepIdentifier>
44 <type>Message</type>
45 </botSteps>
46 <botSteps>
47 <botStepConditions>
48 <leftOperandName>Verified_User</leftOperandName>
49 <leftOperandType>ConversationVariable</leftOperandType>
50 <operatorType>Equals</operatorType>
51 <rightOperandValue>false</rightOperandValue>
52 </botStepConditions>
53 <botSteps>
54 <botNavigation>
55 <botNavigationLinks>
56 <targetBotDialog>Customer_Verification</targetBotDialog>
57 </botNavigationLinks>
58 <type>Call</type>
59 </botNavigation>
60 <stepIdentifier>Call_Customer_Verification</stepIdentifier>
61 <type>Navigation</type>
62 </botSteps>
63 <stepIdentifier>Verify_User</stepIdentifier>
64 <type>Group</type>
65 </botSteps>
66 <botSteps>
67 <botStepConditions>
68 <leftOperandName>Location</leftOperandName>
69 <leftOperandType>ConversationVariable</leftOperandType>
70 <operatorType>IsNotSet</operatorType>
71 </botStepConditions>
72 <botSteps>
73 <botNavigation>
74 <botNavigationLinks>
75 <targetBotDialog>Select_Location</targetBotDialog>
76 </botNavigationLinks>
77 <type>Call</type>
78 </botNavigation>
79 <stepIdentifier>Call_Select_Location</stepIdentifier>
80 <type>Navigation</type>
81 </botSteps>
82 <stepIdentifier>Set_Location</stepIdentifier>
83 <type>Group</type>
84 </botSteps>
85 <botSteps>
86 <botVariableOperation>
87 <botInvocation>
88 <invocationActionName>CreateOrderService</invocationActionName>
89 <invocationActionType>apex</invocationActionType>
90 <invocationMappings>
91 <parameterName>customer</parameterName>
92 <type>Input</type>
93 <variableName>Contact</variableName>
94 <variableType>ConversationVariable</variableType>
95 </invocationMappings>
96 <invocationMappings>
97 <parameterName>location</parameterName>
98 <type>Input</type>
99 <variableName>Location</variableName>
100 <variableType>ConversationVariable</variableType>
101 </invocationMappings>
102 <invocationMappings>
103 <parameterName>output</parameterName>
104 <type>Output</type>
105 <variableName>Pizza_Order</variableName>
106 <variableType>ConversationVariable</variableType>
107 </invocationMappings>
108 </botInvocation>
109 <type>Set</type>
110 <variableOperationIdentifier>Set_Order</variableOperationIdentifier>
111 </botVariableOperation>
112 <stepIdentifier>Create_Order</stepIdentifier>
113 <type>VariableOperation</type>
114 </botSteps>
115 <botSteps>
116 <botMessages>
117 <message>Perfect, let's work on your order from our {!Location.Name} location</message>
118 <messageIdentifier>Start_Order_Message</messageIdentifier>
119 </botMessages>
120 <stepIdentifier>Start_Order</stepIdentifier>
121 <type>Message</type>
122 </botSteps>
123 <botSteps>
124 <messageDefinition>
125 <messageDefinitionName>Astros_Pizza_Menu</messageDefinitionName>
126 </messageDefinition>
127 <stepIdentifier>36e5a7cb-50c4-4279-aa06-1217eba1bf62</stepIdentifier>
128 <type>RichMessage</type>
129 </botSteps>
130 <botSteps>
131 <botNavigation>
132 <botNavigationLinks>
133 <targetBotDialog>Add_Items_to_Order</targetBotDialog>
134 </botNavigationLinks>
135 <type>Redirect</type>
136 </botNavigation>
137 <stepIdentifier>Proceed_To_Add_Items</stepIdentifier>
138 <type>Navigation</type>
139 </botSteps>
140 <developerName>New_Order</developerName>
141 <label>New Order</label>
142 <mlIntent>New_Order</mlIntent>
143 <showInFooterMenu>false</showInFooterMenu>
144 </botDialogs>
145 <conversationVariables>
146 <dataType>Object</dataType>
147 <developerName>Contact</developerName>
148 <label>Contact</label>
149 </conversationVariables>
150 <conversationVariables>
151 <dataType>Text</dataType>
152 <developerName>Delivery_Address</developerName>
153 <label>Delivery Address</label>
154 </conversationVariables>
155 <conversationVariables>
156 <dataType>Object</dataType>
157 <developerName>Pizza_Order</developerName>
158 <label>Pizza Order</label>
159 </conversationVariables>
160 <entryDialog>Welcome</entryDialog>
161 <mainMenuDialog>Main_Menu</mainMenuDialog>
162 </botVersions>
163 <label>Astro's Pizza</label>
164</Bot>前の定義を参照する package.xml の例を次に示します。
1<?xml version="1.0" encoding="UTF-8"?>
2<Package xmlns="http://soap.sforce.com/2006/04/metadata">
3 <types>
4 <members>Astros Pizza_Bot.v1</members>
5 <name>BotVersion</name>
6 </types>
7 <version>45.0</version>
8</Package>マニフェストファイル内のワイルドカードのサポート
このメタデータ型では、package.xml マニフェストファイル内のワイルドカード文字 * (アスタリスク) はサポートされません。マニフェストファイルの使用についての詳細は、「zip ファイルを使用したメタデータのリリースと取得」を参照してください。