Utility Actions

Herogi supports several utility functions to increase your ability to design better and complex scenarios.

Event Generation

Event generation actions help you to build fully automated flows in scenarios.

GenerateEventAction

Generates an event and send it to the specific scenario or multiple scenarios immediately.

Action Parameters

Key Data Type Recurring Sample Value Description
sessionId STRING NO userid123 Session identifier of event
scenarioName STRING NO AbandonedCart Scenario to send event
eventName STRING NO addToCart Name of event
eventParams STRING YES amount,30$ Parameters of event

Tip: If you leave sessionId and scenario name empty, current sessionId and scenarioName will be used as default

FutureEventAction

Generates an event and send it to the specific scenario or multiple scenarios on the specific time.

Action Parameters

Key Data Type Recurring Sample Value Description
sessionId STRING NO userid123 Session identifier of event
scenarioName STRING NO AbandonedCart Scenario to send event
eventName STRING NO addToCart Name of event
eventParams STRING YES amount,30$ Parameters of event
sendTime NUMERIC NO 1490437412416 Scheduled time of the future event, unix timestamp used

Tip: If you leave sessionId and scenario name empty, current sessionId and scenarioName will be used as default

Data Storage

With data storage actions, you can save important data to use later on.

SimpleKeyValueStoreAction

Saves key-value pair for a specific session and scenario. Check session data for more information.

Action Parameters

Key Data Type Recurring Sample Value Description
key STRING NO birthdate Column name to store
value STRING NO 22-Jan-1985 Value to store