mirror of
https://github.com/stripe/ai.git
synced 2026-09-14 18:39:59 +08:00
Web Search Example
This example shows how to use the Stripe Agent Toolkit with OpenAI to create an agent that can search the web and charge for outcomes.
Setup
-
Create a OpenAI Vector Store following the OpenAI documentation and add the files you want to search.
-
Copy
.env.templateto.envpopulate with the relevant values.
OPENAI_API_KEY=your_openai_api_key
OPENAI_VECTOR_STORE_ID=your_openai_vector_store_id
STRIPE_SECRET_KEY=your_stripe_secret_key
Usage
python main.py
You can see the invoices created in the Stripe Dashboard.