Skip to content
Closed
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,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<AiEvaluationDefinition xmlns="http://soap.sforce.com/2006/04/metadata">
<name>jokeTest</name>
<subjectName>Joke_Teller</subjectName>
<subjectType>AGENT</subjectType>
<subjectVersion>v2</subjectVersion>
<testCase>
<expectation>
<name>action_sequence_match</name>
</expectation>
<expectation>
<expectedValue>A joke is delivered</expectedValue>
<name>bot_response_rating</name>
</expectation>
<expectation>
<expectedValue>Tell_Joke_16jHE00000005e1</expectedValue>
<name>topic_sequence_match</name>
</expectation>
<inputs>
<utterance>Tell me a joke</utterance>
</inputs>
<number>1</number>
</testCase>
<testCase>
<expectation>
<name>action_sequence_match</name>
</expectation>
<expectation>
<expectedValue>A joke is delivered</expectedValue>
<name>bot_response_rating</name>
</expectation>
<expectation>
<expectedValue>Tell_Joke_16jHE00000005e1</expectedValue>
<name>topic_sequence_match</name>
</expectation>
<inputs>
<utterance>Can you make me laugh</utterance>
</inputs>
<number>2</number>
</testCase>
<testCase>
<expectation>
<expectedValue>[&apos;Joke_179ac9e3c2c30fc&apos;]</expectedValue>
<name>action_sequence_match</name>
</expectation>
<expectation>
<expectedValue>A programming-related joke is delivered</expectedValue>
<name>bot_response_rating</name>
</expectation>
<expectation>
<expectedValue>Tell_Joke_16jHE00000005e1</expectedValue>
<name>topic_sequence_match</name>
</expectation>
<inputs>
<utterance>I need a joke about programming</utterance>
</inputs>
<number>3</number>
</testCase>
<testCase>
<expectation>
<expectedValue>[&apos;Joke_179ac9e3c2c30fc&apos;]</expectedValue>
<name>action_sequence_match</name>
</expectation>
<expectation>
<expectedValue>A dad joke is delivered</expectedValue>
<name>bot_response_rating</name>
</expectation>
<expectation>
<expectedValue>Tell_Joke_16jHE00000005e1</expectedValue>
<name>topic_sequence_match</name>
</expectation>
<inputs>
<utterance>Tell me a dad joke</utterance>
</inputs>
<number>4</number>
</testCase>
</AiEvaluationDefinition>
192 changes: 192 additions & 0 deletions force-app/main/default/bots/Joke_Teller/Joke_Teller.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_Teller</label>
<name>Joke_Teller</name>
</botMlDomain>
<botSource>None</botSource>
<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>
<contextVariables>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.MessagingEndUserId</fieldName>
<messageType>AppleBusinessChat</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.MessagingEndUserId</fieldName>
<messageType>Facebook</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.MessagingEndUserId</fieldName>
<messageType>WhatsApp</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.MessagingEndUserId</fieldName>
<messageType>Text</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.MessagingEndUserId</fieldName>
<messageType>Custom</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.MessagingEndUserId</fieldName>
<messageType>EmbeddedMessaging</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.MessagingEndUserId</fieldName>
<messageType>Line</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.Id</fieldName>
<messageType>Line</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.Id</fieldName>
<messageType>Facebook</messageType>
</contextVariableMappings>
<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>Custom</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.Id</fieldName>
<messageType>EmbeddedMessaging</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.Id</fieldName>
<messageType>AppleBusinessChat</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>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.EndUserLanguage</fieldName>
<messageType>Line</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.EndUserLanguage</fieldName>
<messageType>Facebook</messageType>
</contextVariableMappings>
<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>Custom</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.EndUserLanguage</fieldName>
<messageType>EmbeddedMessaging</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingSession</SObjectType>
<fieldName>MessagingSession.EndUserLanguage</fieldName>
<messageType>AppleBusinessChat</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>MessagingEndUser</SObjectType>
<fieldName>MessagingEndUser.ContactId</fieldName>
<messageType>Line</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingEndUser</SObjectType>
<fieldName>MessagingEndUser.ContactId</fieldName>
<messageType>Facebook</messageType>
</contextVariableMappings>
<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>Custom</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingEndUser</SObjectType>
<fieldName>MessagingEndUser.ContactId</fieldName>
<messageType>EmbeddedMessaging</messageType>
</contextVariableMappings>
<contextVariableMappings>
<SObjectType>MessagingEndUser</SObjectType>
<fieldName>MessagingEndUser.ContactId</fieldName>
<messageType>AppleBusinessChat</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>
<description>Tell jokes</description>
<label>Joke_Teller</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_Teller/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>27ccc99f-55c2-4282-9a60-9595143d2d40</messageIdentifier>
</botMessages>
<stepIdentifier>409063f8-1420-4992-93d9-2a25168c17fa</stepIdentifier>
<type>Message</type>
</botSteps>
<botSteps>
<stepIdentifier>76a5aff1-103f-4db9-a64a-d67c2c346eb2</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>9dbaab3f-24cc-457d-991c-68c3873ea7c3</messageIdentifier>
</botMessages>
<stepIdentifier>9101e5fc-3b8f-432a-8cdf-5f165d87531c</stepIdentifier>
<type>Message</type>
</botSteps>
<botSteps>
<stepIdentifier>9638411b-5c2a-44fc-b75d-88b6e22f069a</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>fb6549eb-b2ab-42bc-9f79-78e8906a6493</messageIdentifier>
</botMessages>
<stepIdentifier>16b73c0f-e981-41d9-bf2a-35916fa79520</stepIdentifier>
<type>Message</type>
</botSteps>
<botSteps>
<conversationSystemMessage>
<type>Transfer</type>
</conversationSystemMessage>
<stepIdentifier>42b3c583-3f46-4b3a-9210-7eecf230be36</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_Teller</genAiPlannerName>
</conversationDefinitionPlanners>
<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>
<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>Salesforce Application Name.</description>
<developerName>currentAppName</developerName>
<includeInPrompt>true</includeInPrompt>
<label>currentAppName</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>Type of Salesforce Page.</description>
<developerName>currentPageType</developerName>
<includeInPrompt>true</includeInPrompt>
<label>currentPageType</label>
<visibility>External</visibility>
</conversationVariables>
<entryDialog>Welcome</entryDialog>
<intentDisambiguationEnabled>false</intentDisambiguationEnabled>
<intentV3Enabled>false</intentV3Enabled>
<knowledgeActionEnabled>false</knowledgeActionEnabled>
<knowledgeFallbackEnabled>false</knowledgeFallbackEnabled>
<role>You tell jokes</role>
<smallTalkEnabled>false</smallTalkEnabled>
<stopRecPrompts>false</stopRecPrompts>
<stopWelcomePrompts>false</stopWelcomePrompts>
<surfacesEnabled>false</surfacesEnabled>
<toneType>Casual</toneType>
</BotVersion>
Loading
Loading