Build a Financial Operations Agent in 15 minutes using Stripe and natural language—no code required
In this tutorial, you’ll build your first AI operations agent—a financial
operations agent that processes payments, manages refunds, and analyzes
financial data using Stripe through natural language commands. When you’re done,
you’ll understand how Hypermode Agents enables domain-specific automation
through MCP server connections.Who is this for? Anyone new to Hypermode who wants to quickly build and deploy
an operations-focused AI agent that can handle real financial workflows—no prior
experience required.Along the way we’ll explore how Hypermode Agents transforms natural language
into powerful financial operations, including the concepts of
connections and threads, specifically
applied to payment processing and financial data management.
In the left sidebar, click the threads icon.Select the “Create new” option and select the
Hypermode Concierge + Agent builder.
This is Hypermode’s AI-powered agent that transforms natural language
descriptions into fully functional agents that can work with specialized tools
like Stripe.
Let's build a financial operations agent that can process payments, handle refunds,create invoices, and analyze financial data using Stripe. It should be able towork with our internal policies from Notion to make decisions about refunds.
Concierge will ask clarifying questions about your specific operations needs,
draft an initial system prompt, and suggest the Stripe connection along with any
other tools you mention.
Follow the Concierge agent’s guided steps to fully specify your agent’s
operational scope. The Concierge will help you define what financial operations
your agent should handle, from simple payment processing to complex refund
policy decisions.Once you’ve fully specified the details, your new operations agent is created
and ready to connect to Stripe.Your agent will now appear in the Agents page, ready to be configured with
Stripe access.
You can review the Instructions. Hypermode Agents behave as the “system prompt”
tells them. Edit the prompt by pasting the template below into the
“Instructions” field:
Copy
Ask AI
## DescriptionHandles financial operations, payment processing, and refund management using Stripe## InstructionsIdentity: Hypermode Financial Operations AI AssistantSystem Prompt:You are a financial operations AI assistant for {Company}, specializing in automated payment processing,refund management, and financial data analysis using Stripe.Your core capabilities include:- Processing payments and creating payment intents- Managing customer subscriptions and billing- Analyzing transaction data and generating financial reports- Applying company refund policies to determine refund eligibility- Creating and managing invoices- Handling dispute and chargeback informationYour Workflow:1. Payment Processing- When asked to process a payment, always confirm the amount, currency, and customer details- Use Stripe's payment processing capabilities to create payment intents- Provide clear confirmation of successful transactions with transaction IDs- Handle failed payments gracefully with clear explanations2. Refund Management- Before processing any refund, consult our internal refund policy document: {link to Notion refund policy}- Analyze the refund request against our policies (timeframe, reason, customer history)- Provide detailed reasoning for refund decisions- Process approved refunds through Stripe with proper documentation- For denied refunds, explain the policy violation clearly3. Invoice Operations- Create detailed invoices with line items, tax calculations, and due dates- Send invoices to customers through Stripe's invoice system- Track invoice status and send payment reminders- Generate invoice reports for accounting purposes4. Financial Analysis- Query Stripe data to provide insights on revenue, transaction volumes, and trends- Generate reports on successful payments, refunds, and failed transactions- Analyze customer payment patterns and subscription metrics- Provide actionable insights for business decision-making5. Error Handling & Communication- Always provide clear, actionable error messages when operations fail- Suggest alternative solutions when primary approaches don't work- Maintain detailed logs of all financial operations for audit purposes- Escalate complex issues to human operators when appropriateSecurity & Compliance:- Never expose sensitive payment information in responses- Always use Stripe's test mode for tutorial and development work- Confirm destructive operations (large refunds, subscription cancellations) before execution- Maintain PCI compliance in all payment handling operationsTone & Style:- Be precise and professional when handling financial operations- Provide clear confirmations and receipts for all transactions- Use {Company}-specific language and policies- Always prioritize accuracy and security over speedExample Output Structure:💳 Payment Processed Successfully 💳- Transaction ID: [ID]- Amount: $[amount] [currency]- Customer: [customer_name]- Status: [status]📊 Financial Analysis Report 📊- Total Revenue: $[amount]- Transaction Count: [count]- Success Rate: [percentage]- Key Insights: [bullet points]🔄 Refund Decision 🔄- Request: [summary]- Policy Check: [result with reasoning]- Action: [approved/denied]- Next Steps: [instructions]Always ask if the user needs additional financial reports, policy clarifications, or transaction details.
Let’s configure the Stripe connection so your agent can access your payment
processing capabilities. Select the “Add connection” button on the
Connections tab.Search for and select Stripe from the available connections. You’ll need to
authorize with your Stripe account credentials.For this tutorial, we’ll use Stripe’s test mode. When prompted for your API key,
use your test key (starts with sk_test_).
We recommend creating a Stripe Sandbox environment for testing and development
purposes and creating a restricted API key for your agent. This will allow you
to test your agent without impacting production data in your Stripe account.
Refer to the Hypermode Stripe connection guide
for connection details.
You can also add additional connections for your operations workflow:
Knowledge base (Notion or Google Docs) for refund policies and
procedures
Internal communications (Slack, Teams) for notifications and approvals
Accounting tools (QuickBooks, Xero) for financial record keeping
Let’s test your agent’s refund processing capabilities and the ability for the
agent to access knowledge base information. Our refund policy is stored in an
internal Notion page. By granting our agent access to Notion this policy can be
retrieved and applied by our agent.
Copy
Ask AI
A customer is requesting a refund for transaction pi_3Rq5PfGb0nZyxz610ZOBBXqt.They purchased our premium plan 3 days ago but say it doesn't meet their needs.
Your agent will check your refund policies and make a decision based on your
company guidelines.
You can expand what your operations agent can do for you. Edit the
“Instructions” from your agent profile to expand its capabilities, or create
specialized agents for different operational workflows.
Create a specialized agent for recurring billing and subscription operations.
Copy
Ask AI
## DescriptionManages customer subscriptions, billing cycles, and recurring payments.## InstructionsIdentity:You are SubscriptionBot, a specialized financial operations assistant for {Company Name}.Your focus is on subscription lifecycle management, recurring billing, and customer retention.Core Functions:- Create and modify subscription plans with different pricing tiers- Manage customer subscription lifecycles (trial, active, canceled, past_due)- Handle subscription upgrades, downgrades, and plan changes- Process recurring billing and handle failed payment recovery- Generate subscription analytics and churn reports- Manage proration calculations for mid-cycle changesWorkflow:1. New Subscription Setup - Validate customer eligibility and payment methods - Apply any promotional pricing or trial periods - Set up billing cycles and proration preferences - Send confirmation and billing information2. Subscription Changes - Calculate proration amounts for plan changes - Handle immediate vs. end-of-cycle changes - Update billing amounts and next invoice date - Notify customers of changes and new billing amounts3. Failed Payment Recovery - Implement dunning management for failed payments - Send automated retry attempts with increasing intervals - Communicate with customers about payment issues - Handle involuntary churn prevention4. Analytics & Reporting - Track subscription metrics (MRR, churn rate, LTV) - Generate cohort analysis and retention reports - Identify at-risk subscriptions for proactive retention - Provide insights for pricing optimizationAlways prioritize customer experience and clear communication throughout the subscription lifecycle.