0.1.0 • Published 10 months ago

@amp-labs/ai v0.1.0

Weekly downloads
-
License
-
Repository
github
Last release
10 months ago

Discord Documentation PRs welcome

Ampersand AI SDK

This SDK enables AI agents to seamlessly perform operations on connected SaaS tools through Ampersand's platform.

Installation

npm install @amp-labs/ai
# or
yarn add @amp-labs/ai
# or
pnpm add @amp-labs/ai

Usage

The SDK provides several modules that can be used depending on your framework preference:

Using with Vercel AI SDK

import { createRecord, updateRecord } from "@amp-labs/ai/aisdk";

// Use in your AI agent configuration
const tools = [createRecord, updateRecord];

Using with Mastra

import { createRecord, updateRecord } from "@amp-labs/ai/mastra";

// Use in your Mastra workflow
const tools = [createRecord, updateRecord];

Available Tools

Please refer to the documentation for the full list of tools and their usage.

Have a tool in mind that we could add? Let us know!

Debugging & Troubleshooting

If you encounter issues, ensure that:

  1. All required environment variables are set correctly
  2. You have an active Ampersand account with the necessary permissions & scopes
  3. The SaaS tool (say HubSpot) connection (with OAuth or apiKey) with your Agent is properly established & is still active.

For further assistance, join our Discord community.