Repeat key
How to ensure more consistent results and behavior during a run?
Last updated
How to ensure more consistent results and behavior during a run?
When creating a new run, you can pass a custom value that can then later be used to repeat the actions in a future run. This is especially useful when using it programmatically where consistency and expected behavior is important.
When a repeatKey is passed and the intent, input/output schema is exactly the same as the already existing action for that userId, then it will be a repeat run. A repeat run means that it will use the code used previously in a run to execute in a more consistent and reliable way.
Set repeatKey field when creating a new run to a meaningful value to you.
Recommendation: something that reflects the intent, e.g. get_next_calendar_events
Other fields like intent , context , selected integrations must still be set.
Last updated