Embed an LWC inside an Einstein Bot | Mini Hacks Solved
ฝัง
- เผยแพร่เมื่อ 5 ส.ค. 2024
- In this episode, you will learn how you can embed a Lightning Web Component inside an Einstein Bot.
Watch the previous episode - Create a word cloud using LWC • Build a Word Cloud Usi...
Einstein Bot Basics on Trailhead - trailhead.salesforce.com/cont...
Web Chat Basics on Trailhead - trailhead.salesforce.com/cont...
Features and Tools needed:
Einstein Bots, Experience Cloud, Lightning Web Components
Timestamps:
00:00 Introduction
00:51 Requirements Walkthrough
03:47 Enabling Chat and Digital Experiences
05:32 Creating an Einstein Bot
07:20 Adding questions and messages to a dialog
10:48 Previewing a bot and setting up chats
13:15 Creating an LWC using the Base Chat Message component
18:35 Composing Base Chat Message component to include other LWCs
26:24 Setting up CORS
27:11 Preview the completed bot
27:45 Closing remarks
More reading material:
Einstein Bots Developer Cookbook - developer.salesforce.com/docs...
Connect with Salesforce Developers:
Website: developer.salesforce.com/
Facebook: / salesforcedevs
Twitter: / salesforcedevs
LinkedIn: / salesforce-developers - วิทยาศาสตร์และเทคโนโลยี
was not aware this was achievable, great info
Nice one
Thanks for watching
Do you know of any way to customize the way Menu Items / Selections appear within the bot? For example, when asking what type of record to display, is there any way to control the color / style of the choices?
This is great.. how can we prevent customers typing in chatbot (Type your message box)? Can we do that using LWC what you just showed us in this video?
Hi Aditya,
This is really nice.
I there a way to choose morethan one option from the question dialog.
For example in this instance I need to choose two object names and store both in a single variable.
How is this possible?
Is there a way to make this work for Enhanced Bot?
Hi , I have created a Enhanced bot and try to put a link but unable unable to create a hyperlink. Instead, I only see the URL displayed as plain text. Can you please guide me on how to properly generate the hyperlink? and i need to publish this in wordpress website ,is it possible to do it ,please give solution in detailed
This is not available for Enhanced Bot, I get only prechat or Header, but I cannot modify the chat.
hey. i am facing the same problem. did you get how to add that lwc chatMessage in embedded or chat?
@@user-um7zs5lv7z Nope, right now you can use LWC for the chat only if you're using a Standard Bot.
sadly if you're using an Enhanced Bot then you only can use the LWC for PreChat and Header :(
If you find anything useful let me know.
Right now I am also having trouble deploying this new Bot.
It's a nightmare.
+1
+1
x4 i have the same problem