Components
StatelessActionCreator
The StatelessActionCreator
component can be used to create a new stateless action that you can use to run a stateless action.
Props
onActionGenerated
This callback will contain JSON that can be passed, along with instructions, to the execute statless action endpoint.
Usage
Make sure that this component is rendered unerneath an
AiActionsProvider
!
stateless-action-creator.tsx
This JSON can then be used with the Node.js client to execute a stateless action:
execute-stateless-action.ts
Example
See the “Stateless action creator/runner” tool for a full example