Publishing Skill (On-demand publishing)
Updated
Overview
On-demand publishing skill lets you deliver customized messages (instead of relying on GenAI content), control the timing of information delivery, and enhance the overall user experience in chatbot interactions.
The Challenge: When dealing with multiple APIs, the sequence and method of publishing responses can often become unpredictable.
For instance - Imagine a travel company chatbot interacting with multiple APIs to gather information about flights, hotels, and car rentals to assist a customer as per request. Each API responds at different times and in diverse formats.
Flight API: Returns flight options almost instantly.
Hotel API: Takes a bit longer and returns a list of available hotels.
Car Rental API: Has a delay and provides rental options last.
Without On-Demand Publishing, the chatbot might publish the flight options immediately, followed by the hotel options a few seconds later, and finally the car rental options. This can lead to a disjointed user experience, where the user receives multiple messages at unpredictable intervals.
The Solution: To address this challenge, On-demand Publishing enables you to store API responses in designated variables and determine the precise timing and manner of their publishing. Whether integrated into individual tasks or as part of a composite skill, this publishing capability ensures that the output meets specific business requirements, reducing reliance on the generative AI’s natural response flow.
Referring to the above example, the solution with On-demand publishing would look like this - The chatbot can store all the responses from these APIs and then publish a single, cohesive message that includes flight, hotel, and car rental options together. This ensures a smoother and more organized interaction for the user.
Another example would be - A customer service chatbot interacts with various APIs to fetch order status, shipping details, and promotional offers. With On-Demand Publishing, the chatbot can gather all relevant information, store it, and then present it in a single message tailored per the brand guidelines to the user, ensuring a seamless and efficient communication experience.
Key Benefits of using Publishing skills
Easy Customization - On-demand Publishing allows you to tailor responses to match business requirements and user preferences.
Improved Efficiency - By storing API responses and publishing them at the best time, you can streamline the communication process, reducing the need for multiple interactions and making the chatbot more efficient.
Consistency and Reliability - This approach ensures that the information provided is consistent and reliable, as it reduces dependency on the generative AI’s natural response flow and allows for more controlled and predictable output
Note: While integrating the On-Demand Publishing skill with Composite Skill, choose Skill Execution behaviour as Standard.
Create a publishing skill
Under the Sprinklr Service tab, select Digital Twin Studio within Persona Apps.
On the Digital Twin Studio window, click the Digital Twins icon on the left side of the window
Select the Digital Twin in which you want to add the On-Demand Publishing skill. The selected Digital Twin window will open.
Navigate to Skills & Tasks and click View.
On the Tasks Manager window, click View Skills.
Click Add Skill in the top right corner of the window and select On-Demand Publishing from the dropdown.
Enter the Name and Description. Add the Text Reply followed by the variable in the given field. Call the variable using $ {variable}.
Click Save to create an On-Demand Publishing skill for your Digital Twin.