The @zapier/ai-actions package is still in development!

If you want to check it out, please contact us

The @zapier/ai-actions library makes it easy to interact with AI Actions from the client or the server.

The library includes an API client, Typescript types, and utilities to make authentication easy.

Installation

To install the library, run:

# npm
npm install @zapier/ai-actions

# pnpm
pnpm add @zapier/ai-actions

# yarn
yarn add @zapier/ai-actions

Quick start

Get your API Key here

Create a new AiActions client with your API key:

import { AiActions } from "@zapier/ai-actions";

const aiActionsClient = new AiActions({
  auth: {
    apiKey: "sk-YOUR_API_KEY",
  },
});

Use the client:

const actionList = await aiActionsClient.getActionList();

actionList.results.forEach((action) => {
  console.log(action.id, action.description);
});

Next steps