Here you'll see a scratch org working with a simple MIAW implementation.
- What’s Service Cloud Messaging?
- What’s Messaging for In-App and Web?
- Considerations when Replacing Chat with Messaging for In-App and Web
Please, take a look on the video demos we have in the channel!
So, let's get down to business
To make our lives easy, we can automate many things, putting the Salesforce CLI, and the bash scripts to run together!
./scripts/bash/createScratchOrg.sh tmpBot
sf project deploy start --ignore-conflicts --manifest manifest/package-Miaw.xml
-
Activate the messaging setting created (MIAW);
-
Add the "Omni-channel" in the utility items, of the Service Console app;
-
Add your user in the "MIAW Queue" queue;
-
Add the presence status to the necessary profiles;
-
Set the new "Messaging Session Record Page" as the default one;
-
Grant the user access with the Messaging for In-App and Web User permission set (done by the Company page);
-
Create a new Embedded Service Deployments (MIAW):
-
Click in new New deployment;
-
As we'll test that in a visualforce page, as site you need to set "[YOUR SCRATCH]--c.scratch.vf.force.com"; For example, if you have this URL environment:
- https://page-business-46872-dev-ed.scratch.lightning.force.com
You need to change from:
- "[YOUR SCRATCH]--c.scratch.vf.force.com"
To:
- page-business-46872-dev-ed--c.scratch.vf.force.com
-
Apply the configurations you want to;
-
Publish it;
-
Click on Instal Code Snippet and Copy to Clipboard;
-
-
Configure the "MIAWInternalTest" visualforce page with the copied Code Snippet;
-
Update all CSP (Trusted URLs) configuration to reflect your brand new scratch org;
-
Edit the "MIAWToQueue" flow, to update the "serviceChannelId" of the environment (save as a new verions and activate it);
-
Create a service resource with your user;
-
Access the Service Console and the Omni Supervisor;
-
Let your user available;
-
Preview the "MIAWInternalTest" Visualforce Pages:
- [YOUR SCRATCH]--c.scratch.vf.force.com/apex/MIAWInternalTest
For example, if you have this URL environment:
- https://page-business-46872-dev-ed.scratch.lightning.force.com
You need to change from:
- "[YOUR SCRATCH]--c.scratch.vf.force.com/apex/MIAWInternalTest"
To:
- page-business-46872-dev-ed--c.scratch.vf.force.com/apex/MIAWInternalTest
Now, you can chat with yourself... but, that is just the preparation to let your agents chat with customers!
I know, now you already have many things here:
- Service Cloud;
- Messaging Seetings;
- Omni-Channel;
- Queues;
- Omni flows to do the routing;
- Embedded Service Deployment;
- A visualforce page to test internaly;
But that is just the start point, coming soon we'll talk about the Einstein Bots, stay tuned...