@meetopenbot/stripe
v0.0.1
Published
This plugin integrates the Stripe Agent Toolkit with OpenBot, creating an "agentic" Stripe assistant. Instead of just providing tools, this plugin handles natural language requests directly using the Vercel AI SDK.
Readme
OpenBot Stripe Agent Plugin
This plugin integrates the Stripe Agent Toolkit with OpenBot, creating an "agentic" Stripe assistant. Instead of just providing tools, this plugin handles natural language requests directly using the Vercel AI SDK.
Features
- Natural Language Interface: Talk to your Stripe account. Ask things like "Who are my latest customers?" or "Create a subscription for John Doe".
- Agentic Behavior: The plugin uses an LLM (OpenAI) to decide which Stripe tools to call based on your request.
- Full Stripe Coverage: Supports all tools provided by the
@stripe/agent-toolkit, including customers, products, prices, payment links, invoices, and subscriptions.
Configuration
To use this plugin, you need:
- A Stripe Restricted API Key (RAK) with necessary permissions.
- An OpenAI API Key.
Add the following to your AGENT.md:
---
plugins:
- id: '@meetopenbot/stripe'
config:
stripeSecretKey: rk_test_...
openaiApiKey: sk-...
model: gpt-4o # Optional, defaults to gpt-4o
---How it Works
- Invoke: When you send a message to the agent, the plugin intercepts the
agent:invokeevent. - Toolkit: It initializes the Stripe Agent Toolkit with your RAK.
- AI SDK: It uses Vercel's AI SDK (
streamText) to process your message, using the Stripe tools as capabilities for the LLM. - Output: The agent's response (and tool results) are streamed back to you.
Development
- Install dependencies:
npm install - Build the plugin:
npm run build
License
MIT
