Progress NativeChat is a cloud product for building and deploying chatbots into various channels. It makes it easy to create chatbots on top of existing systems. Chatbots can interact with users naturally by understanding natural language expressions. Then they can generate reactions and responses based on a cognitive flow definition.
As a Sitefinity CMS user, you can consume existing NativeChat chatbots and display them on your sites.
In this article, you learn how to integrate an existing NativeChat chatbot into your Sitefinity CMS site.
NOTE: Because of the integration between Sitefinity CMS and NativeChat, you do not need to copy and paste any raw HTML code. Instead, you use the NativeChat widget.
Before you can add a NativeChat bot to your pages, you must connect to your NativeChat account. This enables the content editors to browse and connect to the published bots in the NativeChat account.
Perform the following:
IMPORTANT: Before closing this window, copy the token. For security, it is displayed only once.
RECOMMENDATION: To strengthen the security of your solution, we recommend not storing this token anywhere in plain text. Instead, enter it directly in your Sitefinity CMS solution, as described below.
appsettings.json
RESULT: The NativeChat module is configured, and you can add your existing chatbots to the pages of your Sitefinity CMS site.
The following procedure describes how to add bots to your sites.
You can use the NativeChat widget both on page templates and pages.
PREREQUISITES: You need to connect Sitefinity CMS to NativeChat, as described in the procedure Connect Sitefinity CMS to NativeChat.
To do this, perform the following:
NOTE: To strengthen the security of your site, the NativeScript widget changes the configuration of the Content Security Policy HTTP Header. It adds the following cookies: script-src, style-src, img-src, child-src, and frame-src and sets them to enable loading resources from web-chat.nativechat.com. For more information, see Content-Security-Policy (CSP) HTTP response header.
script-src
style-src
img-src
child-src
frame-src
With the NativeChat connector and widget you can also create a FAQ solution, which takes input from Sitefinity CMS and updates it in NativeChat with the help of service hooks. You can add different variations of the questions and the answers and improve the bot in the NativeChat portal, but you can manage the content only in Sitefinity CMS. You need a published NativeChat chatbot, a dynamic content type with question and answer fields, and a Service hook based on that module.
You can either use your existing FAQ module or create a new dynamic module. For more information, see Create a dynamic content type.
You have two required fields in the content type for the chatbot - Question and Answer. They can have different names, but you need to configure these fields in the service hook for the chatbot. You can have additional fields as well, depending on how you want to present the FAQ on your site.
You must create a service hook that updates the NativeChat chatbot when you publish, unpublish, delete, or update dynamic content items for the content type you have created. For more information, see Dynamic content items.
FAQ chatbots in multilingual sites
You can also set up FAQ chatbots in multilingual sites. All you need to do is to create a chatbot for each language in the NativeChat portal, create the service hook with the specific language chatbot, and when the language of the bot and the content match the chatbot is updated.
Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.
This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.
This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important