Learn how to create a complete AI agent that integrates with Stripe’s payment processing API while using Galileo for AI Agent Reliability
Create a new project from the Galileo console using the `New Project` button
Get your Galileo API Keys
Setting the metrics you want to track
Sign up for a Stripe Developer Account
Get your Stripe API Keys
sk_test_
) and paste it into your .env file as STRIPE_SECRET_KEY.Clone the project in your IDE of choice
sdk-examples/typescript/agent/stripe-agent-tool
folder in the cloned repo.Navigate to the folder using the command line:Install dependencies
Configure your .env file
.env
, then add your own API keys. Be sure the variables are added to your .gitignore
file.When complete, it should look something like this:Build the project
Start the interactive CLI mode
help
- Show available commands and examplesquit
or exit
- Exit the applicationclear
- Clear the terminal screen!end
- Force flush Galileo traces (developer command)Start the web mode
http://localhost:3000
Navigate to your Galileo Dashboard
View traces and sessions
agents/StripeAgent.ts
)config/environment.ts
)interactive.ts
and server.ts
)types/index.ts
)agents/StripeAgent.ts
ties everything together and adds Galileo instrumentation for observability.
Key Ingredients:
Missing environment variables
Galileo initialization failed
Stripe API errors
Agent not responding