article by Rohit Dhamija, April 2021
Event handler is a new feature in Oracle Digital Assistant 21.02 and later that provides an event driven mechanism to execute custom logic in the context of resolving a composite bag entity. The custom logic you implement may include custom validations, customized prompts and disambiguation messages, or access to remote REST services for querying and updating data.
Very soon we will publish two new tutorials about entity event handlers on our product documentation page. Until then, this article will get you started. What you will learn following the instructions in this article is how to create an event handler and how to use the custom component SDK to render prompts as card layouts.
You will also notice how using event handlers, you can add advanced functionality to the ResolveEntities component.
Download Source Files
Download final implementation (Skill – ZIP)
Learn about Composite Bag Entity (Video)
Oracle Digital Assistant Design Camp: Model Driven Conversations
Related Content
TechExchange: How to configure a bag item in a composite bag entity as optional
TechExchange Quick-Tip: Setting Composite Bag Entity Item Values From A Custom Component
TechExchange Quick-Tip: How to Intelligently Cancel Composite Bag Entity Driven User Dialog Flows