Skip to content

Commit 7c7d6a7

Browse files
authored
Merge pull request #4 from Think2Corp/demo-video
Super Joke Agent
2 parents 79d1405 + afec0f7 commit 7c7d6a7

11 files changed

Lines changed: 617 additions & 0 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<AiEvaluationDefinition xmlns="http://soap.sforce.com/2006/04/metadata">
3+
<name>JokingTest</name>
4+
<subjectName>Joke_Agent</subjectName>
5+
<subjectType>AGENT</subjectType>
6+
<subjectVersion>v1</subjectVersion>
7+
<testCase>
8+
<expectation>
9+
<expectedValue>Tell_a_Joke</expectedValue>
10+
<name>topic_sequence_match</name>
11+
</expectation>
12+
<expectation>
13+
<expectedValue>[&apos;ThemedJoke&apos;]</expectedValue>
14+
<name>action_sequence_match</name>
15+
</expectation>
16+
<expectation>
17+
<expectedValue>Here&apos;s a joke about technology: A joke about technology.</expectedValue>
18+
<name>bot_response_rating</name>
19+
</expectation>
20+
<inputs>
21+
<utterance>Can you tell me a joke about technology?</utterance>
22+
</inputs>
23+
<number>1</number>
24+
</testCase>
25+
<testCase>
26+
<expectation>
27+
<expectedValue>Tell_a_Joke</expectedValue>
28+
<name>topic_sequence_match</name>
29+
</expectation>
30+
<expectation>
31+
<expectedValue>[&apos;GetRecordDetails&apos;]</expectedValue>
32+
<name>action_sequence_match</name>
33+
</expectation>
34+
<expectation>
35+
<expectedValue>Here&apos;s a joke for you: General joke details.</expectedValue>
36+
<name>bot_response_rating</name>
37+
</expectation>
38+
<inputs>
39+
<utterance>Can you tell me a joke?</utterance>
40+
</inputs>
41+
<number>2</number>
42+
</testCase>
43+
</AiEvaluationDefinition>
Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,192 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Bot xmlns="http://soap.sforce.com/2006/04/metadata">
3+
<agentDSLEnabled>false</agentDSLEnabled>
4+
<agentTemplate>EmployeeCopilot__AgentforceEmployeeAgent</agentTemplate>
5+
<agentType>AgentforceEmployeeAgent</agentType>
6+
<botMlDomain>
7+
<label>Joke_Agent</label>
8+
<name>Joke_Agent</name>
9+
</botMlDomain>
10+
<botSource>None</botSource>
11+
<contextVariables>
12+
<contextVariableMappings>
13+
<SObjectType>MessagingEndUser</SObjectType>
14+
<fieldName>MessagingEndUser.ContactId</fieldName>
15+
<messageType>WhatsApp</messageType>
16+
</contextVariableMappings>
17+
<contextVariableMappings>
18+
<SObjectType>MessagingEndUser</SObjectType>
19+
<fieldName>MessagingEndUser.ContactId</fieldName>
20+
<messageType>Text</messageType>
21+
</contextVariableMappings>
22+
<contextVariableMappings>
23+
<SObjectType>MessagingEndUser</SObjectType>
24+
<fieldName>MessagingEndUser.ContactId</fieldName>
25+
<messageType>Facebook</messageType>
26+
</contextVariableMappings>
27+
<contextVariableMappings>
28+
<SObjectType>MessagingEndUser</SObjectType>
29+
<fieldName>MessagingEndUser.ContactId</fieldName>
30+
<messageType>Line</messageType>
31+
</contextVariableMappings>
32+
<contextVariableMappings>
33+
<SObjectType>MessagingEndUser</SObjectType>
34+
<fieldName>MessagingEndUser.ContactId</fieldName>
35+
<messageType>AppleBusinessChat</messageType>
36+
</contextVariableMappings>
37+
<contextVariableMappings>
38+
<SObjectType>MessagingEndUser</SObjectType>
39+
<fieldName>MessagingEndUser.ContactId</fieldName>
40+
<messageType>Custom</messageType>
41+
</contextVariableMappings>
42+
<contextVariableMappings>
43+
<SObjectType>MessagingEndUser</SObjectType>
44+
<fieldName>MessagingEndUser.ContactId</fieldName>
45+
<messageType>EmbeddedMessaging</messageType>
46+
</contextVariableMappings>
47+
<dataType>Id</dataType>
48+
<description>This variable may also be referred to as MessagingEndUser ContactId</description>
49+
<developerName>ContactId</developerName>
50+
<includeInPrompt>false</includeInPrompt>
51+
<label>Contact Id</label>
52+
</contextVariables>
53+
<contextVariables>
54+
<contextVariableMappings>
55+
<SObjectType>MessagingSession</SObjectType>
56+
<fieldName>MessagingSession.MessagingEndUserId</fieldName>
57+
<messageType>EmbeddedMessaging</messageType>
58+
</contextVariableMappings>
59+
<contextVariableMappings>
60+
<SObjectType>MessagingSession</SObjectType>
61+
<fieldName>MessagingSession.MessagingEndUserId</fieldName>
62+
<messageType>Text</messageType>
63+
</contextVariableMappings>
64+
<contextVariableMappings>
65+
<SObjectType>MessagingSession</SObjectType>
66+
<fieldName>MessagingSession.MessagingEndUserId</fieldName>
67+
<messageType>Facebook</messageType>
68+
</contextVariableMappings>
69+
<contextVariableMappings>
70+
<SObjectType>MessagingSession</SObjectType>
71+
<fieldName>MessagingSession.MessagingEndUserId</fieldName>
72+
<messageType>Line</messageType>
73+
</contextVariableMappings>
74+
<contextVariableMappings>
75+
<SObjectType>MessagingSession</SObjectType>
76+
<fieldName>MessagingSession.MessagingEndUserId</fieldName>
77+
<messageType>AppleBusinessChat</messageType>
78+
</contextVariableMappings>
79+
<contextVariableMappings>
80+
<SObjectType>MessagingSession</SObjectType>
81+
<fieldName>MessagingSession.MessagingEndUserId</fieldName>
82+
<messageType>Custom</messageType>
83+
</contextVariableMappings>
84+
<contextVariableMappings>
85+
<SObjectType>MessagingSession</SObjectType>
86+
<fieldName>MessagingSession.MessagingEndUserId</fieldName>
87+
<messageType>WhatsApp</messageType>
88+
</contextVariableMappings>
89+
<dataType>Id</dataType>
90+
<description>This variable may also be referred to as MessagingEndUser Id</description>
91+
<developerName>EndUserId</developerName>
92+
<includeInPrompt>true</includeInPrompt>
93+
<label>End User Id</label>
94+
</contextVariables>
95+
<contextVariables>
96+
<contextVariableMappings>
97+
<SObjectType>MessagingSession</SObjectType>
98+
<fieldName>MessagingSession.EndUserLanguage</fieldName>
99+
<messageType>WhatsApp</messageType>
100+
</contextVariableMappings>
101+
<contextVariableMappings>
102+
<SObjectType>MessagingSession</SObjectType>
103+
<fieldName>MessagingSession.EndUserLanguage</fieldName>
104+
<messageType>Text</messageType>
105+
</contextVariableMappings>
106+
<contextVariableMappings>
107+
<SObjectType>MessagingSession</SObjectType>
108+
<fieldName>MessagingSession.EndUserLanguage</fieldName>
109+
<messageType>Facebook</messageType>
110+
</contextVariableMappings>
111+
<contextVariableMappings>
112+
<SObjectType>MessagingSession</SObjectType>
113+
<fieldName>MessagingSession.EndUserLanguage</fieldName>
114+
<messageType>Line</messageType>
115+
</contextVariableMappings>
116+
<contextVariableMappings>
117+
<SObjectType>MessagingSession</SObjectType>
118+
<fieldName>MessagingSession.EndUserLanguage</fieldName>
119+
<messageType>AppleBusinessChat</messageType>
120+
</contextVariableMappings>
121+
<contextVariableMappings>
122+
<SObjectType>MessagingSession</SObjectType>
123+
<fieldName>MessagingSession.EndUserLanguage</fieldName>
124+
<messageType>Custom</messageType>
125+
</contextVariableMappings>
126+
<contextVariableMappings>
127+
<SObjectType>MessagingSession</SObjectType>
128+
<fieldName>MessagingSession.EndUserLanguage</fieldName>
129+
<messageType>EmbeddedMessaging</messageType>
130+
</contextVariableMappings>
131+
<dataType>Text</dataType>
132+
<description>This variable may also be referred to as MessagingSession EndUserLanguage</description>
133+
<developerName>EndUserLanguage</developerName>
134+
<includeInPrompt>false</includeInPrompt>
135+
<label>End User Language</label>
136+
</contextVariables>
137+
<contextVariables>
138+
<contextVariableMappings>
139+
<SObjectType>MessagingSession</SObjectType>
140+
<fieldName>MessagingSession.Id</fieldName>
141+
<messageType>WhatsApp</messageType>
142+
</contextVariableMappings>
143+
<contextVariableMappings>
144+
<SObjectType>MessagingSession</SObjectType>
145+
<fieldName>MessagingSession.Id</fieldName>
146+
<messageType>Text</messageType>
147+
</contextVariableMappings>
148+
<contextVariableMappings>
149+
<SObjectType>MessagingSession</SObjectType>
150+
<fieldName>MessagingSession.Id</fieldName>
151+
<messageType>Facebook</messageType>
152+
</contextVariableMappings>
153+
<contextVariableMappings>
154+
<SObjectType>MessagingSession</SObjectType>
155+
<fieldName>MessagingSession.Id</fieldName>
156+
<messageType>Line</messageType>
157+
</contextVariableMappings>
158+
<contextVariableMappings>
159+
<SObjectType>MessagingSession</SObjectType>
160+
<fieldName>MessagingSession.Id</fieldName>
161+
<messageType>AppleBusinessChat</messageType>
162+
</contextVariableMappings>
163+
<contextVariableMappings>
164+
<SObjectType>MessagingSession</SObjectType>
165+
<fieldName>MessagingSession.Id</fieldName>
166+
<messageType>Custom</messageType>
167+
</contextVariableMappings>
168+
<contextVariableMappings>
169+
<SObjectType>MessagingSession</SObjectType>
170+
<fieldName>MessagingSession.Id</fieldName>
171+
<messageType>EmbeddedMessaging</messageType>
172+
</contextVariableMappings>
173+
<dataType>Id</dataType>
174+
<description>This variable may also be referred to as MessagingSession Id</description>
175+
<developerName>RoutableId</developerName>
176+
<includeInPrompt>true</includeInPrompt>
177+
<label>Routable Id</label>
178+
</contextVariables>
179+
<contextVariables>
180+
<dataType>Id</dataType>
181+
<description>This variable may also be referred to as VoiceCall Id</description>
182+
<developerName>VoiceCallId</developerName>
183+
<includeInPrompt>true</includeInPrompt>
184+
<label>Voice Call Id</label>
185+
</contextVariables>
186+
<description>Automate common business tasks and assist users in their flow of work. Agentforce Employee Agent can search knowledge articles and other data sources. Customize it further to meet your employees’ business needs.</description>
187+
<label>Joke_Agent</label>
188+
<logPrivateConversationData>false</logPrivateConversationData>
189+
<richContentEnabled>true</richContentEnabled>
190+
<sessionTimeout>0</sessionTimeout>
191+
<type>InternalCopilot</type>
192+
</Bot>
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<BotVersion xmlns="http://soap.sforce.com/2006/04/metadata">
3+
<fullName>v1</fullName>
4+
<articleAnswersGPTEnabled>false</articleAnswersGPTEnabled>
5+
<botDialogs>
6+
<botSteps>
7+
<botMessages>
8+
<message>Hi, I’m Agentforce! I use AI to search trusted sources, and more. Ask me “What else can you do?” to see how I can simplify your workday. How can I help?</message>
9+
<messageIdentifier>60291a3d-bf63-4a12-8bd0-55d82a371a56</messageIdentifier>
10+
</botMessages>
11+
<stepIdentifier>7e600444-d506-4add-8849-d33c5b24e92f</stepIdentifier>
12+
<type>Message</type>
13+
</botSteps>
14+
<botSteps>
15+
<stepIdentifier>f28ac96a-b1bb-46fd-862c-4d58bf8cf2fc</stepIdentifier>
16+
<type>Wait</type>
17+
</botSteps>
18+
<developerName>Welcome</developerName>
19+
<isPlaceholderDialog>false</isPlaceholderDialog>
20+
<label>Hi! I&apos;m your helpful bot.</label>
21+
<showInFooterMenu>false</showInFooterMenu>
22+
</botDialogs>
23+
<botDialogs>
24+
<botSteps>
25+
<botMessages>
26+
<message>Something went wrong. Try again.</message>
27+
<messageIdentifier>05bbedb9-d1ed-446b-ad50-39477b7a4c74</messageIdentifier>
28+
</botMessages>
29+
<stepIdentifier>80341b6d-9bc0-4d76-b4b7-69aa15e4b3e5</stepIdentifier>
30+
<type>Message</type>
31+
</botSteps>
32+
<botSteps>
33+
<stepIdentifier>cab7570b-2654-432b-bbbf-c9c4c2e492df</stepIdentifier>
34+
<type>Wait</type>
35+
</botSteps>
36+
<developerName>Error_Handling</developerName>
37+
<isPlaceholderDialog>false</isPlaceholderDialog>
38+
<label>Unfortunately, a system error occurred. Let us start again.</label>
39+
<showInFooterMenu>false</showInFooterMenu>
40+
</botDialogs>
41+
<botDialogs>
42+
<botSteps>
43+
<botMessages>
44+
<message>One moment while I connect you to the next available service representative.</message>
45+
<messageIdentifier>87b2a187-9548-4a6b-b1e3-337340564348</messageIdentifier>
46+
</botMessages>
47+
<stepIdentifier>ebee6d0b-b2fa-42e7-adab-a8c006edabaf</stepIdentifier>
48+
<type>Message</type>
49+
</botSteps>
50+
<botSteps>
51+
<conversationSystemMessage>
52+
<type>Transfer</type>
53+
</conversationSystemMessage>
54+
<stepIdentifier>94fd00a7-5df9-48a2-a81f-c709af2ba979</stepIdentifier>
55+
<type>SystemMessage</type>
56+
</botSteps>
57+
<developerName>Transfer_To_Agent</developerName>
58+
<isPlaceholderDialog>false</isPlaceholderDialog>
59+
<label>Transfer To Agent</label>
60+
<showInFooterMenu>false</showInFooterMenu>
61+
</botDialogs>
62+
<citationsEnabled>false</citationsEnabled>
63+
<company>Clown Company</company>
64+
<conversationDefinitionPlanners>
65+
<genAiPlannerName>Joke_Agent</genAiPlannerName>
66+
</conversationDefinitionPlanners>
67+
<conversationVariables>
68+
<dataType>Text</dataType>
69+
<description>Salesforce Application Name.</description>
70+
<developerName>currentAppName</developerName>
71+
<includeInPrompt>true</includeInPrompt>
72+
<label>currentAppName</label>
73+
<visibility>External</visibility>
74+
</conversationVariables>
75+
<conversationVariables>
76+
<dataType>Text</dataType>
77+
<description>The API name of the Salesforce object (such as Account or Opportunity) associated with the record the user wants to interact with. Do not use this if the user is already talking about another object in the conversation.</description>
78+
<developerName>currentObjectApiName</developerName>
79+
<includeInPrompt>true</includeInPrompt>
80+
<label>currentObjectApiName</label>
81+
<visibility>External</visibility>
82+
</conversationVariables>
83+
<conversationVariables>
84+
<dataType>Text</dataType>
85+
<description>Type of Salesforce Page.</description>
86+
<developerName>currentPageType</developerName>
87+
<includeInPrompt>true</includeInPrompt>
88+
<label>currentPageType</label>
89+
<visibility>External</visibility>
90+
</conversationVariables>
91+
<conversationVariables>
92+
<dataType>Text</dataType>
93+
<description>The ID of the record on the user&apos;s screen. It may not relate to the user&apos;s input. Only use this if the user input mentions &apos;this&apos;, &apos;current&apos;, &apos;the record&apos;, etc. If in doubt, don&apos;t use it.</description>
94+
<developerName>currentRecordId</developerName>
95+
<includeInPrompt>true</includeInPrompt>
96+
<label>currentRecordId</label>
97+
<visibility>External</visibility>
98+
</conversationVariables>
99+
<conversationVariables>
100+
<dataType>Text</dataType>
101+
<description>This variable may also be referred to as VerifiedCustomerId</description>
102+
<developerName>VerifiedCustomerId</developerName>
103+
<includeInPrompt>false</includeInPrompt>
104+
<label>VerifiedCustomerId</label>
105+
<visibility>Internal</visibility>
106+
</conversationVariables>
107+
<entryDialog>Welcome</entryDialog>
108+
<intentDisambiguationEnabled>false</intentDisambiguationEnabled>
109+
<intentV3Enabled>false</intentV3Enabled>
110+
<knowledgeActionEnabled>false</knowledgeActionEnabled>
111+
<knowledgeFallbackEnabled>false</knowledgeFallbackEnabled>
112+
<role>You are an Agentforce Employee Agent making jokes</role>
113+
<smallTalkEnabled>false</smallTalkEnabled>
114+
<stopRecPrompts>false</stopRecPrompts>
115+
<stopWelcomePrompts>false</stopWelcomePrompts>
116+
<surfacesEnabled>false</surfacesEnabled>
117+
<toneType>Casual</toneType>
118+
</BotVersion>

0 commit comments

Comments
 (0)