Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions agentstack/templates/crewai/tools/stripe_tool.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import os
from stripe_agent_toolkit.crewai.toolkit import StripeAgentToolkit
from dotenv import load_dotenv
load_dotenv()

stripe_tools = StripeAgentToolkit(
secret_key=os.getenv("STRIPE_SECRET_KEY"),
configuration={
"actions": {
"payment_links": {
"create": True,
"read": True,
"update": False
},
"products": {
"create": True,
"update": True
},
"prices": {
"create": True,
"update": True
},
}
}).get_tools()
8 changes: 8 additions & 0 deletions agentstack/tools/stripe.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "stripe",
"package": "poetry add stripe-agent-toolkit stripe",
"env": "STRIPE_SECRET_KEY=sk-...",
"tools_bundled": true,
"tools": ["stripe_tools"],
"cta": "🔑 Create your Stripe API key here: https://dashboard.stripe.com/account/apikeys"
}
4 changes: 4 additions & 0 deletions agentstack/tools/tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,9 @@
"search": [{
"name": "perplexity",
"url": "https://perplexity.ai"
}],
"application-specific": [{
"name": "stripe",
"url": "https://github.com/stripe/agent-toolkit"
}]
}
Loading