Skip to content

Commit 506b96e

Browse files
authored
Merge pull request #7 from Think2Corp/org3
contacty on org3
2 parents a1e4a18 + e847741 commit 506b96e

8 files changed

+161
-45
lines changed

force-app/main/default/bots/Contacty/Contacty.bot-meta.xml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,42 @@
55
<label>Contacty</label>
66
<name>Contacty</name>
77
</botMlDomain>
8-
<botUser>contacty@00dgl000003moal.ext</botUser>
8+
<botUser>contacty@00dgl000003rze2.ext</botUser>
99
<contextVariables>
1010
<contextVariableMappings>
1111
<SObjectType>MessagingSession</SObjectType>
1212
<fieldName>MessagingSession.MessagingEndUserId</fieldName>
13-
<messageType>AppleBusinessChat</messageType>
13+
<messageType>Text</messageType>
1414
</contextVariableMappings>
1515
<contextVariableMappings>
1616
<SObjectType>MessagingSession</SObjectType>
1717
<fieldName>MessagingSession.MessagingEndUserId</fieldName>
18-
<messageType>Line</messageType>
18+
<messageType>WhatsApp</messageType>
1919
</contextVariableMappings>
2020
<contextVariableMappings>
2121
<SObjectType>MessagingSession</SObjectType>
2222
<fieldName>MessagingSession.MessagingEndUserId</fieldName>
23-
<messageType>Facebook</messageType>
23+
<messageType>Line</messageType>
2424
</contextVariableMappings>
2525
<contextVariableMappings>
2626
<SObjectType>MessagingSession</SObjectType>
2727
<fieldName>MessagingSession.MessagingEndUserId</fieldName>
28-
<messageType>Text</messageType>
28+
<messageType>EmbeddedMessaging</messageType>
2929
</contextVariableMappings>
3030
<contextVariableMappings>
3131
<SObjectType>MessagingSession</SObjectType>
3232
<fieldName>MessagingSession.MessagingEndUserId</fieldName>
33-
<messageType>WhatsApp</messageType>
33+
<messageType>AppleBusinessChat</messageType>
3434
</contextVariableMappings>
3535
<contextVariableMappings>
3636
<SObjectType>MessagingSession</SObjectType>
3737
<fieldName>MessagingSession.MessagingEndUserId</fieldName>
38-
<messageType>EmbeddedMessaging</messageType>
38+
<messageType>Custom</messageType>
3939
</contextVariableMappings>
4040
<contextVariableMappings>
4141
<SObjectType>MessagingSession</SObjectType>
4242
<fieldName>MessagingSession.MessagingEndUserId</fieldName>
43-
<messageType>Custom</messageType>
43+
<messageType>Facebook</messageType>
4444
</contextVariableMappings>
4545
<dataType>Id</dataType>
4646
<description>This variable may also be referred to as MessagingEndUser Id</description>
@@ -52,37 +52,37 @@
5252
<contextVariableMappings>
5353
<SObjectType>MessagingSession</SObjectType>
5454
<fieldName>MessagingSession.Id</fieldName>
55-
<messageType>Custom</messageType>
55+
<messageType>Facebook</messageType>
5656
</contextVariableMappings>
5757
<contextVariableMappings>
5858
<SObjectType>MessagingSession</SObjectType>
5959
<fieldName>MessagingSession.Id</fieldName>
60-
<messageType>Line</messageType>
60+
<messageType>WhatsApp</messageType>
6161
</contextVariableMappings>
6262
<contextVariableMappings>
6363
<SObjectType>MessagingSession</SObjectType>
6464
<fieldName>MessagingSession.Id</fieldName>
65-
<messageType>Facebook</messageType>
65+
<messageType>Line</messageType>
6666
</contextVariableMappings>
6767
<contextVariableMappings>
6868
<SObjectType>MessagingSession</SObjectType>
6969
<fieldName>MessagingSession.Id</fieldName>
70-
<messageType>Text</messageType>
70+
<messageType>EmbeddedMessaging</messageType>
7171
</contextVariableMappings>
7272
<contextVariableMappings>
7373
<SObjectType>MessagingSession</SObjectType>
7474
<fieldName>MessagingSession.Id</fieldName>
75-
<messageType>WhatsApp</messageType>
75+
<messageType>AppleBusinessChat</messageType>
7676
</contextVariableMappings>
7777
<contextVariableMappings>
7878
<SObjectType>MessagingSession</SObjectType>
7979
<fieldName>MessagingSession.Id</fieldName>
80-
<messageType>EmbeddedMessaging</messageType>
80+
<messageType>Custom</messageType>
8181
</contextVariableMappings>
8282
<contextVariableMappings>
8383
<SObjectType>MessagingSession</SObjectType>
8484
<fieldName>MessagingSession.Id</fieldName>
85-
<messageType>AppleBusinessChat</messageType>
85+
<messageType>Text</messageType>
8686
</contextVariableMappings>
8787
<dataType>Id</dataType>
8888
<description>This variable may also be referred to as MessagingSession Id</description>
@@ -94,37 +94,37 @@
9494
<contextVariableMappings>
9595
<SObjectType>MessagingSession</SObjectType>
9696
<fieldName>MessagingSession.EndUserLanguage</fieldName>
97-
<messageType>Custom</messageType>
97+
<messageType>Facebook</messageType>
9898
</contextVariableMappings>
9999
<contextVariableMappings>
100100
<SObjectType>MessagingSession</SObjectType>
101101
<fieldName>MessagingSession.EndUserLanguage</fieldName>
102-
<messageType>Line</messageType>
102+
<messageType>WhatsApp</messageType>
103103
</contextVariableMappings>
104104
<contextVariableMappings>
105105
<SObjectType>MessagingSession</SObjectType>
106106
<fieldName>MessagingSession.EndUserLanguage</fieldName>
107-
<messageType>Facebook</messageType>
107+
<messageType>Line</messageType>
108108
</contextVariableMappings>
109109
<contextVariableMappings>
110110
<SObjectType>MessagingSession</SObjectType>
111111
<fieldName>MessagingSession.EndUserLanguage</fieldName>
112-
<messageType>Text</messageType>
112+
<messageType>EmbeddedMessaging</messageType>
113113
</contextVariableMappings>
114114
<contextVariableMappings>
115115
<SObjectType>MessagingSession</SObjectType>
116116
<fieldName>MessagingSession.EndUserLanguage</fieldName>
117-
<messageType>WhatsApp</messageType>
117+
<messageType>AppleBusinessChat</messageType>
118118
</contextVariableMappings>
119119
<contextVariableMappings>
120120
<SObjectType>MessagingSession</SObjectType>
121121
<fieldName>MessagingSession.EndUserLanguage</fieldName>
122-
<messageType>EmbeddedMessaging</messageType>
122+
<messageType>Custom</messageType>
123123
</contextVariableMappings>
124124
<contextVariableMappings>
125125
<SObjectType>MessagingSession</SObjectType>
126126
<fieldName>MessagingSession.EndUserLanguage</fieldName>
127-
<messageType>AppleBusinessChat</messageType>
127+
<messageType>Text</messageType>
128128
</contextVariableMappings>
129129
<dataType>Text</dataType>
130130
<description>This variable may also be referred to as MessagingSession EndUserLanguage</description>
@@ -136,45 +136,45 @@
136136
<contextVariableMappings>
137137
<SObjectType>MessagingEndUser</SObjectType>
138138
<fieldName>MessagingEndUser.ContactId</fieldName>
139-
<messageType>Custom</messageType>
139+
<messageType>Facebook</messageType>
140140
</contextVariableMappings>
141141
<contextVariableMappings>
142142
<SObjectType>MessagingEndUser</SObjectType>
143143
<fieldName>MessagingEndUser.ContactId</fieldName>
144-
<messageType>Line</messageType>
144+
<messageType>WhatsApp</messageType>
145145
</contextVariableMappings>
146146
<contextVariableMappings>
147147
<SObjectType>MessagingEndUser</SObjectType>
148148
<fieldName>MessagingEndUser.ContactId</fieldName>
149-
<messageType>Facebook</messageType>
149+
<messageType>Line</messageType>
150150
</contextVariableMappings>
151151
<contextVariableMappings>
152152
<SObjectType>MessagingEndUser</SObjectType>
153153
<fieldName>MessagingEndUser.ContactId</fieldName>
154-
<messageType>Text</messageType>
154+
<messageType>EmbeddedMessaging</messageType>
155155
</contextVariableMappings>
156156
<contextVariableMappings>
157157
<SObjectType>MessagingEndUser</SObjectType>
158158
<fieldName>MessagingEndUser.ContactId</fieldName>
159-
<messageType>WhatsApp</messageType>
159+
<messageType>AppleBusinessChat</messageType>
160160
</contextVariableMappings>
161161
<contextVariableMappings>
162162
<SObjectType>MessagingEndUser</SObjectType>
163163
<fieldName>MessagingEndUser.ContactId</fieldName>
164-
<messageType>EmbeddedMessaging</messageType>
164+
<messageType>Custom</messageType>
165165
</contextVariableMappings>
166166
<contextVariableMappings>
167167
<SObjectType>MessagingEndUser</SObjectType>
168168
<fieldName>MessagingEndUser.ContactId</fieldName>
169-
<messageType>AppleBusinessChat</messageType>
169+
<messageType>Text</messageType>
170170
</contextVariableMappings>
171171
<dataType>Id</dataType>
172172
<description>This variable may also be referred to as MessagingEndUser ContactId</description>
173173
<developerName>ContactId</developerName>
174174
<includeInPrompt>false</includeInPrompt>
175175
<label>Contact Id</label>
176176
</contextVariables>
177-
<description>You are an AI Agent whose job is to help customers with their contact information and account security inquiries.</description>
177+
<description>You are an AI Agent whose job is to help customers of The Flower Company manage their account information and security.</description>
178178
<label>Contacty</label>
179179
<logPrivateConversationData>false</logPrivateConversationData>
180180
<richContentEnabled>true</richContentEnabled>

force-app/main/default/bots/Contacty/v1.botVersion-meta.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
<botSteps>
77
<botMessages>
88
<message>Hi, I&apos;m an AI assistant. How can I help you?</message>
9-
<messageIdentifier>18712574-b3e1-4d21-ab5a-2e94b0ce034e</messageIdentifier>
9+
<messageIdentifier>b11c8c35-ea00-476b-8f4b-6151997158ba</messageIdentifier>
1010
</botMessages>
11-
<stepIdentifier>768a993d-91ba-44f2-a69b-7d976da9da95</stepIdentifier>
11+
<stepIdentifier>2ef52a9d-8d39-4518-83bb-2b05a6c84160</stepIdentifier>
1212
<type>Message</type>
1313
</botSteps>
1414
<botSteps>
15-
<stepIdentifier>1aed4375-0ccb-4de0-9f1a-be0cdb120797</stepIdentifier>
15+
<stepIdentifier>3f0053d3-15f0-495b-b868-ac0fa3391f0e</stepIdentifier>
1616
<type>Wait</type>
1717
</botSteps>
1818
<developerName>Welcome</developerName>
@@ -24,13 +24,13 @@
2424
<botSteps>
2525
<botMessages>
2626
<message>Sorry, it looks like something has gone wrong.</message>
27-
<messageIdentifier>10ab3427-c5ac-4069-873a-94aa8f3e3b56</messageIdentifier>
27+
<messageIdentifier>75598e2c-c239-423d-aec8-bca9f5a3f9f8</messageIdentifier>
2828
</botMessages>
29-
<stepIdentifier>f9382474-580e-475b-8cdf-d969156c5c0c</stepIdentifier>
29+
<stepIdentifier>a1fbf232-ce69-457d-874f-41e7426eb33a</stepIdentifier>
3030
<type>Message</type>
3131
</botSteps>
3232
<botSteps>
33-
<stepIdentifier>207f72e9-9bb3-4f13-ad62-cb7ea99fe16e</stepIdentifier>
33+
<stepIdentifier>aef15c88-cf98-4594-9287-908508ef96af</stepIdentifier>
3434
<type>Wait</type>
3535
</botSteps>
3636
<developerName>Error_Handling</developerName>
@@ -42,16 +42,16 @@
4242
<botSteps>
4343
<botMessages>
4444
<message>One moment while I connect you to the next available service representative.</message>
45-
<messageIdentifier>4a0426b6-38d5-41c4-ba65-f0b626aef277</messageIdentifier>
45+
<messageIdentifier>46449da4-56c7-4563-b912-3e1e620c90d9</messageIdentifier>
4646
</botMessages>
47-
<stepIdentifier>6cdff9a3-bf95-4ca0-94ca-928cfb0046ef</stepIdentifier>
47+
<stepIdentifier>7f6d2e3b-4e56-4ab7-8fa3-4805d118da6f</stepIdentifier>
4848
<type>Message</type>
4949
</botSteps>
5050
<botSteps>
5151
<conversationSystemMessage>
5252
<type>Transfer</type>
5353
</conversationSystemMessage>
54-
<stepIdentifier>cc5eddef-ab66-4744-ab05-76f807836329</stepIdentifier>
54+
<stepIdentifier>81975248-53a1-4d3c-a73e-bd3fba482c1f</stepIdentifier>
5555
<type>SystemMessage</type>
5656
</botSteps>
5757
<developerName>Transfer_To_Agent</developerName>

force-app/main/default/genAiPlanners/Contacty.genAiPlanner-meta.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<GenAiPlanner xmlns="http://soap.sforce.com/2006/04/metadata">
3-
<description>You are an AI Agent whose job is to help customers with their contact information and account security inquiries.</description>
3+
<description>You are an AI Agent whose job is to help customers of The Flower Company manage their account information and security.</description>
44
<genAiPlugins>
5-
<genAiPluginName>p_16jgL000000Jms9_Provide_Account_Security_Tips</genAiPluginName>
5+
<genAiPluginName>p_16jgL000000K4Vh_Provide_Account_Security_Tips</genAiPluginName>
66
</genAiPlugins>
77
<genAiPlugins>
8-
<genAiPluginName>p_16jgL000000Jms9_Reset_Customer_Password</genAiPluginName>
8+
<genAiPluginName>p_16jgL000000K4Vh_Reset_Customer_Password</genAiPluginName>
99
</genAiPlugins>
1010
<genAiPlugins>
11-
<genAiPluginName>p_16jgL000000Jms9_Track_Customer_Requests</genAiPluginName>
11+
<genAiPluginName>p_16jgL000000K4Vh_Track_Customer_Requests</genAiPluginName>
1212
</genAiPlugins>
1313
<genAiPlugins>
14-
<genAiPluginName>p_16jgL000000Jms9_Update_Contact_Information</genAiPluginName>
14+
<genAiPluginName>p_16jgL000000K4Vh_Update_Contact_Information</genAiPluginName>
1515
</genAiPlugins>
1616
<genAiPlugins>
17-
<genAiPluginName>p_16jgL000000Jms9_Verify_Customer_Identity</genAiPluginName>
17+
<genAiPluginName>p_16jgL000000K4Vh_Verify_Customer_Identity</genAiPluginName>
1818
</genAiPlugins>
1919
<masterLabel>Contacty</masterLabel>
2020
<plannerType>AiCopilot__ReAct</plannerType>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<GenAiPlugin xmlns="http://soap.sforce.com/2006/04/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3+
<canEscalate>false</canEscalate>
4+
<description>Offer advice on how customers can secure their accounts.</description>
5+
<developerName>p_16jgL000000K4Vh_Provide_Account_Security_Tips</developerName>
6+
<genAiFunctions>
7+
<functionName>EmployeeCopilot__AnswerQuestionsWithKnowledge</functionName>
8+
</genAiFunctions>
9+
<genAiPluginInstructions>
10+
<description>If the customer asks for security tips, use EmployeeCopilot__AnswerQuestionsWithKnowledge.</description>
11+
<developerName>instruction_0</developerName>
12+
<language xsi:nil="true"/>
13+
<masterLabel>instruction_0</masterLabel>
14+
</genAiPluginInstructions>
15+
<language>en_US</language>
16+
<masterLabel>Provide Account Security Tips</masterLabel>
17+
<pluginType>Topic</pluginType>
18+
<scope>Your job is to only provide information on best practices for account security. You aren&apos;t able to make changes to the account security settings.</scope>
19+
</GenAiPlugin>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<GenAiPlugin xmlns="http://soap.sforce.com/2006/04/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3+
<canEscalate>false</canEscalate>
4+
<description>Guide customers through the process of resetting their passwords.</description>
5+
<developerName>p_16jgL000000K4Vh_Reset_Customer_Password</developerName>
6+
<genAiFunctions>
7+
<functionName>SvcCopilotTmpl__ResetPassword</functionName>
8+
</genAiFunctions>
9+
<genAiFunctions>
10+
<functionName>EmployeeCopilot__AnswerQuestionsWithKnowledge</functionName>
11+
</genAiFunctions>
12+
<genAiPluginInstructions>
13+
<description>If the customer requests a password reset, use SvcCopilotTmpl__ResetPassword.</description>
14+
<developerName>instruction_0</developerName>
15+
<language xsi:nil="true"/>
16+
<masterLabel>instruction_0</masterLabel>
17+
</genAiPluginInstructions>
18+
<language>en_US</language>
19+
<masterLabel>Reset Customer Password</masterLabel>
20+
<pluginType>Topic</pluginType>
21+
<scope>Your job is to only send a password reset link to the customer&apos;s email address associated with their contact record. You aren&apos;t able to change the password directly.</scope>
22+
</GenAiPlugin>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<GenAiPlugin xmlns="http://soap.sforce.com/2006/04/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3+
<canEscalate>false</canEscalate>
4+
<description>Monitor and follow up on customer inquiries and requests.</description>
5+
<developerName>p_16jgL000000K4Vh_Track_Customer_Requests</developerName>
6+
<genAiFunctions>
7+
<functionName>SvcCopilotTmpl__GetCaseByCaseNumber</functionName>
8+
</genAiFunctions>
9+
<genAiFunctions>
10+
<functionName>EmployeeCopilot__AnswerQuestionsWithKnowledge</functionName>
11+
</genAiFunctions>
12+
<genAiPluginInstructions>
13+
<description>If the customer inquires about the status of their request, use SvcCopilotTmpl__GetCaseByCaseNumber.</description>
14+
<developerName>instruction_0</developerName>
15+
<language xsi:nil="true"/>
16+
<masterLabel>instruction_0</masterLabel>
17+
</genAiPluginInstructions>
18+
<language>en_US</language>
19+
<masterLabel>Track Customer Requests</masterLabel>
20+
<pluginType>Topic</pluginType>
21+
<scope>Your job is to only track and provide updates on customer inquiries and requests. You aren&apos;t able to resolve the inquiries directly.</scope>
22+
</GenAiPlugin>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<GenAiPlugin xmlns="http://soap.sforce.com/2006/04/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3+
<canEscalate>false</canEscalate>
4+
<description>Assist customers in changing their contact details such as email address, phone number, or postal address.</description>
5+
<developerName>p_16jgL000000K4Vh_Update_Contact_Information</developerName>
6+
<genAiFunctions>
7+
<functionName>SvcCopilotTmpl__UpdateCustomerContact</functionName>
8+
</genAiFunctions>
9+
<genAiFunctions>
10+
<functionName>EmployeeCopilot__AnswerQuestionsWithKnowledge</functionName>
11+
</genAiFunctions>
12+
<genAiPluginInstructions>
13+
<description>If the customer requests to update their contact details, use SvcCopilotTmpl__UpdateCustomerContact. Ensure you specify an Id, ask for it or use GetContacyByName.</description>
14+
<developerName>instruction_0</developerName>
15+
<language xsi:nil="true"/>
16+
<masterLabel>instruction_0</masterLabel>
17+
</genAiPluginInstructions>
18+
<language>en_US</language>
19+
<masterLabel>Update Contact Information</masterLabel>
20+
<pluginType>Topic</pluginType>
21+
<scope>Your job is to only update fields on a customer’s contact record. You aren&apos;t able to handle other account-related tasks.</scope>
22+
</GenAiPlugin>

0 commit comments

Comments
 (0)