@zapier/ai-actions-react
: EditAction
and CreateAction
.
CreateAction
should be used when you do not have an existing action that you want to edit, and EditAction
should be used when you know the ID of the action you want to edit.
onActionSaved
actionId
EditAction
This is the ID of the action that you want to edit. When the component renders, it will fetch the latest version of the action to edit from the API.
onActionDeleted
EditAction
This callback wall be called with the ID of the action that was deleted when the user clicks the “Delete” button.
AiActionsProvider
!ActionList
component to show a list of action and lets you select an action to edit. It also lets you create new actions.