@zapier/ai-actions-react
components must be rendered underneath an AiActionsProvider
.
Props
auth
The auth
prop is used to handle authenticating with AI Actions.
It takes an object that can have one of two properties:
apiKey
: A string containing your API key.token
: A string containing your OAuth token.
If you plan on using the AI Actions components to allow users to create and
manage their own actions, then you will have to use the OAuth
token
authentication method.Usage
If you’re using a framework like Next.js, the
AiActionsProvider
and the
components rendered as children of it need to be rendered client-side.This can be done by putting "use client";
at the top of the file that uses AiActionsProvider
.