@zapier/ai-actions-react
components must be rendered underneath an AiActionsProvider
.
auth
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.token
authentication method.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
.