function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
U ChauhanU Chauhan 

Post Chat Survey form in enhanced bot

Can we show vf page or lwc component inside enhanced BOT as we need to show survey feedback form after chat ends in enhanced BOT
SwethaSwetha (Salesforce Developers) 
HI,

Currently, it is not possible to directly display a Visualforce (VF) page or Lightning Web Component (LWC) inside the Enhanced Bot in Salesforce. The Enhanced Bot is primarily designed to handle conversational flows and provide responses using built-in messaging components.

However, you can achieve the desired functionality by implementing a workaround. Here's a possible approach:

> After the chat ends, you can configure the Enhanced Bot to offer a button or prompt to initiate the post-chat survey.
> When the user clicks on the button or prompt, you can use a custom redirect action to navigate the user to a separate web page that contains the VF page or LWC component for the survey feedback form.
> On the separate web page, you can embed the VF page or LWC component to display the survey feedback form.
> Once the survey is submitted, you can handle the data and perform any necessary actions, such as storing the feedback in Salesforce or triggering follow-up processes.

With this workaround, you can provide a seamless experience for users within the Enhanced Bot flow while still allowing them to access the survey feedback form through a separate web page.

If this information helps, please mark the answer as best. Thank you