Question: I’m building a Lightning component to edit html and need a robust WYSIWYG rich text editor (RTE) with “add link” feature and embed features. I really need the “add link” feature. When I search for RTE and Lightning I found and considered the following:

Trailblazer gives UI guidelines if you want to layout your own markup for a RTE but why reinvent the wheel when there are good plugins out there.
<http://lightningdesignsystem.com/components/rich-text-editor/>

The old ui:inputRichText is not supported when LockerService is activated:

So this leaves `<lightning:inputRichText />`. But this RTE lacks is deficient in both add link and image features.

```
<lightning:inputRichText value="{!v.body}" aura:id="iBody">
</lightning:inputRichText>

```

I’ve seen code that suggests you can add a button to let uses insert an image. 

```
<lightning:inputRichText value="{!v.body}">
    <lightning:insertImageButton/>
</lightning:inputRichText>        

```

But this image uploader has a 1MB limit and has a terrible way of dealing with files that are too big. The user is told a serious error happened and they are asked to send a report into SF. 

Is there some inner component that can be added to provide a Add Hyperlink feature?

Or, can we get the RTE that is used in Salesforce Lightning? Its the CKE editor and it’d be good enough. Is there a way to use this in our Lightning apps? I’ll guess that it might be imported as a static resource etc. Has anyone tried this and had success?

Answer: 
I figured it out: if your Salesforce Instance has access to Einstein Bots, there will be an **Einstein Bots Settings** section under the **Chat Buttons** section in **Setup**.
[![enter image description here](https://i.stack.imgur.com/Ijq2Z.png)](https://i.stack.imgur.com/Ijq2Z.png)

If you leave **Einstein Bots Configuration** blank, then (curiously enough) the preview for Einstein Bot will redirect the user to a Live Agent.

To fix this issue, simply fill in **Einstein Bots Configuration** as I have done in the picture above.
*[@Antonio\_Cucciniello](https://salesforce.stackexchange.com/users/65079/antonio-cucciniello)'s comment solved this for me, sharing as an answer to make this more noticable.*

---

If your bot has any **Apex actions**, make sure you don't have any errors. This will automatically try transferring you to an agent.

Inside your Bot Builder's top left dropdown go to:

`Performance` ➡ `Event Logs`

Visually check the **Errors** column for any "✓" marks on any rows.

If you see any, double click the logs `Session ID`, and explore what Event's have Errors. (if it was a recent log, you might need to wait a couple minutes for the log to load its data)

To see the actual error, click the "" on the row showing the Error column with "⚠". (It's kind of confusing to click the radio input to show you the error)

When I checked, I found that my bot had error:

```
[{"message":"You don't have access to the Apex class: Bot_SearchFAQ","errorCode":"INSUFFICIENT_ACCESS"}]

```

It was easy to fix once I saw this error. ([add the permission set to my bot](https://developer.salesforce.com/docs/atlas.en-us.bot_cookbook.meta/bot_cookbook/bot_cookbook_call_apex_action.htm#apex-perm-info))