Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<AiEvaluationDefinition xmlns="http://soap.sforce.com/2006/04/metadata">
<name>JokingTest</name>
<subjectName>Joke_Agent</subjectName>
<subjectType>AGENT</subjectType>
<subjectVersion>v1</subjectVersion>
<testCase>
<expectation>
<expectedValue>Tell_a_Joke</expectedValue>
<name>topic_sequence_match</name>
</expectation>
<expectation>
<expectedValue>[&apos;ThemedJoke&apos;]</expectedValue>
<name>action_sequence_match</name>
</expectation>
<expectation>
<expectedValue>Here&apos;s a joke about technology: A joke about technology.</expectedValue>
<name>bot_response_rating</name>
</expectation>
<inputs>
<utterance>Can you tell me a joke about technology?</utterance>
</inputs>
<number>1</number>
</testCase>
<testCase>
<expectation>
<expectedValue>Tell_a_Joke</expectedValue>
<name>topic_sequence_match</name>
</expectation>
<expectation>
<expectedValue>[&apos;GetRecordDetails&apos;]</expectedValue>
<name>action_sequence_match</name>
</expectation>
<expectation>
<expectedValue>Here&apos;s a joke for you: General joke details.</expectedValue>
<name>bot_response_rating</name>
</expectation>
<inputs>
<utterance>Can you tell me a joke?</utterance>
</inputs>
<number>2</number>
</testCase>
</AiEvaluationDefinition>
192 changes: 192 additions & 0 deletions force-app/main/default/bots/Joke_Agent/Joke_Agent.bot-meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,192 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bot xmlns="http://soap.sforce.com/2006/04/metadata">
<agentDSLEnabled>false</agentDSLEnabled>
<agentTemplate>EmployeeCopilot__AgentforceEmployeeAgent</agentTemplate>
<agentType>AgentforceEmployeeAgent</agentType>
<botMlDomain>
<label>Joke_Agent</label>
<name>Joke_Agent</name>
</botMlDomain>
<botSource>None</botSource>
<contextVariables>
<contextVariableMappings>
<SObjectType>MessagingEndUser</SObjectType>
<fieldName>MessagingEndUser.ContactId</fieldName>
<messageType>WhatsApp</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingEndUser</SObjectType>
<fieldName>MessagingEndUser.ContactId</fieldName>
<messageType>Text</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingEndUser</SObjectType>
<fieldName>MessagingEndUser.ContactId</fieldName>
<messageType>Facebook</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingEndUser</SObjectType>
<fieldName>MessagingEndUser.ContactId</fieldName>
<messageType>Line</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingEndUser</SObjectType>
<fieldName>MessagingEndUser.ContactId</fieldName>
<messageType>AppleBusinessChat</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingEndUser</SObjectType>
<fieldName>MessagingEndUser.ContactId</fieldName>
<messageType>Custom</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingEndUser</SObjectType>
<fieldName>MessagingEndUser.ContactId</fieldName>
<messageType>EmbeddedMessaging</messageType>
</contextVariableMappings>
<dataType>Id</dataType>
<description>This variable may also be referred to as MessagingEndUser ContactId</description>
<developerName>ContactId</developerName>
<includeInPrompt>false</includeInPrompt>
<label>Contact Id</label>
</contextVariables>
<contextVariables>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.MessagingEndUserId</fieldName>
<messageType>EmbeddedMessaging</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.MessagingEndUserId</fieldName>
<messageType>Text</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.MessagingEndUserId</fieldName>
<messageType>Facebook</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.MessagingEndUserId</fieldName>
<messageType>Line</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.MessagingEndUserId</fieldName>
<messageType>AppleBusinessChat</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.MessagingEndUserId</fieldName>
<messageType>Custom</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.MessagingEndUserId</fieldName>
<messageType>WhatsApp</messageType>
</contextVariableMappings>
<dataType>Id</dataType>
<description>This variable may also be referred to as MessagingEndUser Id</description>
<developerName>EndUserId</developerName>
<includeInPrompt>true</includeInPrompt>
<label>End User Id</label>
</contextVariables>
<contextVariables>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.EndUserLanguage</fieldName>
<messageType>WhatsApp</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.EndUserLanguage</fieldName>
<messageType>Text</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.EndUserLanguage</fieldName>
<messageType>Facebook</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.EndUserLanguage</fieldName>
<messageType>Line</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.EndUserLanguage</fieldName>
<messageType>AppleBusinessChat</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.EndUserLanguage</fieldName>
<messageType>Custom</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.EndUserLanguage</fieldName>
<messageType>EmbeddedMessaging</messageType>
</contextVariableMappings>
<dataType>Text</dataType>
<description>This variable may also be referred to as MessagingSession EndUserLanguage</description>
<developerName>EndUserLanguage</developerName>
<includeInPrompt>false</includeInPrompt>
<label>End User Language</label>
</contextVariables>
<contextVariables>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.Id</fieldName>
<messageType>WhatsApp</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.Id</fieldName>
<messageType>Text</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.Id</fieldName>
<messageType>Facebook</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.Id</fieldName>
<messageType>Line</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.Id</fieldName>
<messageType>AppleBusinessChat</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.Id</fieldName>
<messageType>Custom</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.Id</fieldName>
<messageType>EmbeddedMessaging</messageType>
</contextVariableMappings>
<dataType>Id</dataType>
<description>This variable may also be referred to as MessagingSession Id</description>
<developerName>RoutableId</developerName>
<includeInPrompt>true</includeInPrompt>
<label>Routable Id</label>
</contextVariables>
<contextVariables>
<dataType>Id</dataType>
<description>This variable may also be referred to as VoiceCall Id</description>
<developerName>VoiceCallId</developerName>
<includeInPrompt>true</includeInPrompt>
<label>Voice Call Id</label>
</contextVariables>
<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>
<label>Joke_Agent</label>
<logPrivateConversationData>false</logPrivateConversationData>
<richContentEnabled>true</richContentEnabled>
<sessionTimeout>0</sessionTimeout>
<type>InternalCopilot</type>
</Bot>
118 changes: 118 additions & 0 deletions force-app/main/default/bots/Joke_Agent/v1.botVersion-meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
<?xml version="1.0" encoding="UTF-8"?>
<BotVersion xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>v1</fullName>
<articleAnswersGPTEnabled>false</articleAnswersGPTEnabled>
<botDialogs>
<botSteps>
<botMessages>
<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>
<messageIdentifier>60291a3d-bf63-4a12-8bd0-55d82a371a56</messageIdentifier>
</botMessages>
<stepIdentifier>7e600444-d506-4add-8849-d33c5b24e92f</stepIdentifier>
<type>Message</type>
</botSteps>
<botSteps>
<stepIdentifier>f28ac96a-b1bb-46fd-862c-4d58bf8cf2fc</stepIdentifier>
<type>Wait</type>
</botSteps>
<developerName>Welcome</developerName>
<isPlaceholderDialog>false</isPlaceholderDialog>
<label>Hi! I&apos;m your helpful bot.</label>
<showInFooterMenu>false</showInFooterMenu>
</botDialogs>
<botDialogs>
<botSteps>
<botMessages>
<message>Something went wrong. Try again.</message>
<messageIdentifier>05bbedb9-d1ed-446b-ad50-39477b7a4c74</messageIdentifier>
</botMessages>
<stepIdentifier>80341b6d-9bc0-4d76-b4b7-69aa15e4b3e5</stepIdentifier>
<type>Message</type>
</botSteps>
<botSteps>
<stepIdentifier>cab7570b-2654-432b-bbbf-c9c4c2e492df</stepIdentifier>
<type>Wait</type>
</botSteps>
<developerName>Error_Handling</developerName>
<isPlaceholderDialog>false</isPlaceholderDialog>
<label>Unfortunately, a system error occurred. Let us start again.</label>
<showInFooterMenu>false</showInFooterMenu>
</botDialogs>
<botDialogs>
<botSteps>
<botMessages>
<message>One moment while I connect you to the next available service representative.</message>
<messageIdentifier>87b2a187-9548-4a6b-b1e3-337340564348</messageIdentifier>
</botMessages>
<stepIdentifier>ebee6d0b-b2fa-42e7-adab-a8c006edabaf</stepIdentifier>
<type>Message</type>
</botSteps>
<botSteps>
<conversationSystemMessage>
<type>Transfer</type>
</conversationSystemMessage>
<stepIdentifier>94fd00a7-5df9-48a2-a81f-c709af2ba979</stepIdentifier>
<type>SystemMessage</type>
</botSteps>
<developerName>Transfer_To_Agent</developerName>
<isPlaceholderDialog>false</isPlaceholderDialog>
<label>Transfer To Agent</label>
<showInFooterMenu>false</showInFooterMenu>
</botDialogs>
<citationsEnabled>false</citationsEnabled>
<company>Clown Company</company>
<conversationDefinitionPlanners>
<genAiPlannerName>Joke_Agent</genAiPlannerName>
</conversationDefinitionPlanners>
<conversationVariables>
<dataType>Text</dataType>
<description>Salesforce Application Name.</description>
<developerName>currentAppName</developerName>
<includeInPrompt>true</includeInPrompt>
<label>currentAppName</label>
<visibility>External</visibility>
</conversationVariables>
<conversationVariables>
<dataType>Text</dataType>
<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>
<developerName>currentObjectApiName</developerName>
<includeInPrompt>true</includeInPrompt>
<label>currentObjectApiName</label>
<visibility>External</visibility>
</conversationVariables>
<conversationVariables>
<dataType>Text</dataType>
<description>Type of Salesforce Page.</description>
<developerName>currentPageType</developerName>
<includeInPrompt>true</includeInPrompt>
<label>currentPageType</label>
<visibility>External</visibility>
</conversationVariables>
<conversationVariables>
<dataType>Text</dataType>
<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>
<developerName>currentRecordId</developerName>
<includeInPrompt>true</includeInPrompt>
<label>currentRecordId</label>
<visibility>External</visibility>
</conversationVariables>
<conversationVariables>
<dataType>Text</dataType>
<description>This variable may also be referred to as VerifiedCustomerId</description>
<developerName>VerifiedCustomerId</developerName>
<includeInPrompt>false</includeInPrompt>
<label>VerifiedCustomerId</label>
<visibility>Internal</visibility>
</conversationVariables>
<entryDialog>Welcome</entryDialog>
<intentDisambiguationEnabled>false</intentDisambiguationEnabled>
<intentV3Enabled>false</intentV3Enabled>
<knowledgeActionEnabled>false</knowledgeActionEnabled>
<knowledgeFallbackEnabled>false</knowledgeFallbackEnabled>
<role>You are an Agentforce Employee Agent making jokes</role>
<smallTalkEnabled>false</smallTalkEnabled>
<stopRecPrompts>false</stopRecPrompts>
<stopWelcomePrompts>false</stopWelcomePrompts>
<surfacesEnabled>false</surfacesEnabled>
<toneType>Casual</toneType>
</BotVersion>
Loading