Repeat Handlers
Repeat handlers allow users to define behavior that handles utterances like "Go back", "Start over", and so on.
This is done by configuring Repeat Handler objects:
The user chooses the types of repeat events we want to handle (currently, the only one that is supported is
StartOver
). If no events are selected, the handler triggers on all of them by default.The user chooses the miniApps where the handled event can originate from. If no event sources are selected, the handler triggers on all of them by default.
The user selects one or more fields of the current Flow that should be dropped when this event occurs. Dropping these fields will result in the corresponding miniApps or Flows repeating and the fields being asked again.
Each Application and Flow have their own repeat handlers. This means that there are two sets of identical end-points:
one set under
/apps/<app_id>/repeat-handlers/
for Apps;and one under
/flows/<flow_id>/repeat-handlers/
for Flows.
They both function in exactly the same way. The difference is which DiaManT Application we want the handling to happen in.
Get Repeat Handlers
GET | {{baseUrl}}/orchestrator/api/apps/<app_id>/repeat-handlers/ | Gets the Repeat Handlers for the App by |
---|
GET | {{baseUrl}}/orchestrator/api/flows/<flow_id>/repeat-handlers/ | Gets the Repeat Handlers for the Flow by |
---|
Create/Update Repeat Handlers
Creating and updating Repeat Handlers happens through the same PUT
request by updating the list of Repeat Handlers.
PUT | {{baseUrl}}/orchestrator/api/apps/<app_id>/repeat-handlers/ | Updates the Repeat Handlers for the App. |
---|
PUT | {{baseUrl}}/orchestrator/api/flows/<flow_id>/repeat-handlers/ | Updates the Repeat Handlers for the Flow. |
---|
Delete Repeat Handler
To delete a Repeat Handler, make a PUT
request as below with payload empty list []
.
PUT | {{baseUrl}}/orchestrator/api/apps/<app_id>/repeat-handlers/ | Updates the Repeat Handlers for the App. |
---|
PUT | {{baseUrl}}/orchestrator/api/flows/<flow_id>/repeat-handlers/ | Updates the Repeat Handlers for the Flow. |
---|