Get Entity Cache
Categoría: Variable Manipulation
Descripción: This extension module allows retrieving entities saved during previous client sessions on the same channel, to be used in future interactions.
Funcionalidad: Entities saved using this extension module must be stored using the Set Entity Cache action. The entities will only be retrieved if the time elapsed between interactions is less than the cache's expiration time. Additionally, the module includes an entity that indicates whether the process of retrieving the entities was executed.
Prerequisites
- The Set Entity Cache extension module must have been used in previous interactions for the same client.
- The client must have interacted during the validity period of the stored entities; otherwise, these will not be available.
Implementation
Name: Input field of type String that identifies the extension module in the flow.
Boolean entity with the execution response: Output field of type Bool that indicates the result of the entity retrieval process. The entity where this result is stored is selected. Possible values are True: if entities were retrieved successfully, or False: if entities could not be retrieved.
Entity in which the recovered entities are stored: Input field where you select the entity in which the retrieved entities will be stored
The intent to execute on error. The action flow will be interrupted and the description of the error will be passed to the selected intent with the name: 'GetEntityCache_Error': This allows selecting the intent that will handle the errors for this extension module (previously configured). The error details will be available in the entity named GetEntityCache_Error.
Implementation Example
Field | Value |
---|---|
Name | GetEntityCache_Action |
Boolean entity with the execution response | IfGetEnt |
Entity in which the recovered entities are stored | FromCacheEnt |
The intent to execute on error. The action flow will be interrupted and the description of the error will be passed to the selected intent with the name: 'GetEntityCache_Error' | ErrorHandler_Intent |