Showing posts with label Messaging. Show all posts
Showing posts with label Messaging. Show all posts

Friday, December 16, 2022

Embedded Messaging with host domain value cannot be hosted on domain Error In Salesforce

Issue:

These types of errors mostly pops up when your working any kind of the Messaging Systems/Live Agent Chat or Messaging In App and Web chat features in salesforce.

In my case this error is on "Messaging In App and Web" chat configuration.

When your configuring the this Messaging In App and Web we need to create a Embedded Service Deployment to deploy this chat button in on your company/local websites.

Solution:

If we look at "Embedded Service Deployment" configuration it will have bunch of the key properties we need to setup like

  • Embedded Service Deployment Name
  • Site Endpoint
  • Domain
  • Messaging Channel
But now we will discuss more about the Domain property details and it's behavior.

Domain: This domain is the main key reason for this issue. Ideally here we need to add the domain name of your company/website where your going add this chat button on web. So, this code can be hosted on this server without any error.

So if here you have entered domain as "srinivas4sfdc.com"  in your configuration ideally this code snippet you need add on this site only else you will receive the same error.

In my case I have added my domain name as my company domain address like yourcompany.com,yourcompanydomain.in etc and when I'm try to add this code snippet on my website domain "srinivas4sfdc.com" I'm getting the same error.

Deployment Setup Screen:


Error On Website:






Please comment or write us if you have any queries/requirements.

Please like,follow,bookmark,subscribe this site to receive daily updates.


FaceBook Page - I Love Coding. You?


Hope this helps you..Enjoy..!

Friday, June 4, 2021

How To Use Einstein Bot Object Search Results in Einstein Messages

Let assume that you have a Einstein bot and it uses "Object Search" action to fetch the data present in the selected salesforce object with specified search criteria.

Each search record result will have the columns we have selected in the result section and the list of records returned by the search criteria will be stored in a "Search Result Variable" of type Object List.

Search Criteria:



Result Panel:

In my case the results has been stored in a object variable called "ServiceProviderDetails" and now I will show how to use these results in another dialog to show the result values in message.

By default the list index will start from 0(Zero) it means the first record will be stored in 0 index and 2nd record will be stored in 1 index and so on..

If you want to refer the field inside the record use the syntax as {!ServiceProviderDetails[0].filedApiName}.The same has been shown below.



Please comment or write us if you have any queries/requirements.

Please like,follow,bookmark,subscribe this site to receive daily updates.




Hope this helps you..Enjoy..!

Thursday, May 27, 2021

[{"errorCode":"NOT_FOUND","message":"Invalid Lookup SObject:"}] Error in Einstein Bot Object Search

Issue:

Usually we might get this type of errors in many situations, for myself  I caught with this type of error when we are working on Einstein Bot. In my case I want to query an object records using the "Object Search" functionality available under the Action setup.




Root Cause:

The Einstein bot doesn't have either read/view all permission on selected object or the fields mentioned in search criteria/result criteria.

Work Around:

1.Goto the Einstein bot permission set called sfdc.chatbot.service.permset 
2.Open the Object Settings and Select the Object you needed
3.Enable Read/ViewAll under Object Permissions
4.Enable the Read Access for fields under the Field permissions and Save



Please comment or write us if you have any queries/requirements.

Please like,follow,bookmark,subscribe this site to receive daily updates.




Hope this helps you..Enjoy..!






Thursday, May 13, 2021

Messaging Objects Schema in Salesforce

 What is Messaging ?

Messaging is providing the convenient way to the customer chatting from their mobile devices using most popular social media apps or text apps with salesforce executives/agents/bots.

Messaging currently works on below listed apps

  • Facebook messenger
  • SMS
  • Whatsapp 

Object Details:

The entire messaging feature of salesforce works on the list of objects mentioned below.
  • MessagingChannel
  • MessagingChannelSkill
  • ConversationEntry
  • MessagingSession
  • MessagingEndUser
  • MessagingTemplate
  • MessagingDeliveryError

Object Schema:

The schema of these objects as shown below



If you want to know the usage of each object and corresponding fields you can refer to the Salesforce documentation page




Please comment or write us if you have any queries/requirements.

Please like,follow,bookmark,subscribe this site to receive daily updates.




Hope this helps you..Enjoy..!


Monday, May 10, 2021

How to see the list of Whatsapp Numbers(Customers) who interacted with Einstein Bot

Scenario: 

Let's assume that you configured a Einstein bot to handle the some of the end user queries before connecting to the agent. Obviously this bot need to be assigned either with Live agent chat or Messaging channel (Whatsapp/Facebook messenger/text) to answer the queries.

In our case consider that we have assigned this Bot with Messaging channel called Whatsapp and sometimes the bot will answers all the customer queries and ends the chat automatically and in some cases the bot will transfers the chat to agents.

The overall setup is done and it's working as expected.  After the couple of days if you want to know the details of the customers (whatsapp) who interacted with Bot and the conversations has been automatically closed by the Bot.

Solution:

According to the salesforce documentation every time the customer comes to messaging channel an entry will created( if not exist already) in object called Messaging User with details as shown in below image.


In case if you want to see the whole conversation what is happened between the Bot and Customer that can also fetched from the one more object called the Messaging Session. The Messaging Session will be the child object of the Messaging User. Every time the customer chat with bot a new Messaging Session will be in case if the previous conversation got marked as end.



Please comment or write us if you have any queries/requirements.

Please like,follow,bookmark,subscribe this site to receive daily updates.




Hope this helps you..Enjoy..!