Skip to content

Commit 9d0a6c0

Browse files
Update Stripe connection guide and operations agent tutorial (#188)
* update stripe guide * update operations agent tutorial * style and formatting * Update agents/connections/stripe.mdx Co-authored-by: Copilot <[email protected]> * Update agents/connections/stripe.mdx Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
1 parent 8f8c7ef commit 9d0a6c0

16 files changed

+121
-77
lines changed

agents/connections/stripe.mdx

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -86,28 +86,34 @@ your agent needs:
8686

8787
## Creating your Stripe agent
8888

89+
![Create new agent](/images/connections/stripe/create-new-agent-button.png)
90+
8991
### Create a new agent
9092

91-
From the Hypermode interface, create a new agent manually:
93+
From the Hypermode Agents console, create a new agent:
94+
95+
1. Click the **Create new Agent** button from the agents view or select _Create
96+
new >> Create new agent_ from the threads view.
97+
2. Enter a name for your agent.
98+
3. Click the **Create Agent** button.
99+
100+
![Create new agent modal](/images/connections/stripe/create-new-agent-description.png)
92101

93-
1. Click the agent dropdown menu
94-
2. Select "Create new Agent"
102+
### Agent profile
95103

96-
### Configure agent settings
104+
You can view and edit agent details in the agent profile. The agent profile
105+
includes the agent name, description, and instructions. You can also view your
106+
threads with this agent as well as manage the agent's tasks and knowledge.
97107

98-
Use these recommended settings for your Stripe agent:
108+
![Agent profile](/images/connections/stripe/agent-profile-view.png)
99109

100-
- **Agent Name**: StripeSleuth
101-
- **Agent Title**: Connects to Stripe Payments
102-
- **Description**: StripeSleuth handles payment processing and customer
103-
management
104-
- **Instructions**: You have a connection to Stripe and various other developer
105-
tools to streamline payment operations, customer management, and financial
106-
reporting. You can process payments, manage subscriptions, handle refunds, and
107-
analyze financial data.
108-
- **Model**: GPT-4.1
110+
### Agent instructions
109111

110-
![Create agent modal](/images/connections/stripe/stripe-create-agent.png)
112+
You can edit the agent instructions in the agent profile. Editing the agent's
113+
instructions is useful for personalizing your agent and customizing how your
114+
agent will work with you and your team.
115+
116+
![Create agent modal](/images/connections/stripe/edit-agent-instructions.png)
111117

112118
## Connecting to Stripe
113119

@@ -116,8 +122,8 @@ Use these recommended settings for your Stripe agent:
116122
Select the Agents tab in the left navigation bar, then click your StripeSleuth
117123
agent. Select the "Connections" tab.
118124

119-
1. Click "Add connection"
120-
2. Select "Stripe" from the dropdown
125+
1. Select the Connection tab
126+
2. Select "Connect" next to Stripe in the list of available connections
121127

122128
![Add Stripe connection](/images/connections/stripe/stripe-add-connection.png)
123129

@@ -138,7 +144,12 @@ We recommend using a Stripe Sandbox environment for development and testing.
138144

139145
</Warning>
140146

141-
## Verifying the Stripe connection
147+
## Create a new thread with your agent
148+
149+
![Create agent thread](/images/connections/stripe/agent-new-thread.png)
150+
151+
From the threads view, select "Create new" then select your "Stripe Sleuth"
152+
agent from the list of agents.
142153

143154
### Test basic connectivity
144155

first-operations-agent.mdx

Lines changed: 92 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -23,76 +23,59 @@ applied to payment processing and financial data management.
2323

2424
## Prerequisites
2525

26-
- A [Hypermode Pro workspace](https://hypermode.com/login)
26+
- A [Hypermode Agents workspace](https://hypermode.com/login)
2727
- A [Stripe account](https://stripe.com) (test mode is perfect for this
2828
tutorial)
2929
- Access to your operations tools (for example, internal knowledge base) - we'll
3030
use Notion for this tutorial
3131
- Basic familiarity with modern chat interfaces (no coding required)
3232
- Estimated time: 15 minutes
3333

34-
## Step 1: Sign in and open your workspace
34+
## Sign in to Hypermode Agents
3535

36-
Head to [hypermode.com](https://hypermode.com), sign in, and create your first
37-
workspace if you haven't already.
36+
Head to [hypermode.com](https://hypermode.com) and sign in to Hypermode Agents.
3837

39-
## Step 2: Open Hypermode Concierge + Agent builder
38+
## Creating your Stripe agent
4039

41-
In the left sidebar, click the [threads](/agents/work) icon.
40+
![Create new agent](/images/connections/stripe/create-new-agent-button.png)
4241

43-
Select the "Create new" option and select the
44-
[Hypermode Concierge + Agent builder](/agents/create-agent#build-a-new-agent-with-concierge).
45-
This is Hypermode's AI-powered agent that transforms natural language
46-
descriptions into fully functional agents that can work with specialized tools
47-
like Stripe.
42+
### Create a new agent
4843

49-
![Create new agent](/images/tutorials/first-operations-agent/create-new.png)
44+
From the Hypermode Agents console, create a new agent:
5045

51-
## Step 3: Describe the job
46+
1. Click the **Create new Agent** button from the agents view or select _Create
47+
new >> Create new agent_ from the threads view.
48+
2. Enter a description of your agent
5249

53-
In plain English, type something like:
50+
We'll use the following description for our financial operations agent:
5451

5552
```text
56-
Let's build a financial operations agent that can process payments, handle refunds,
57-
create invoices, and analyze financial data using Stripe. It should be able to
58-
work with our internal policies from Notion to make decisions about refunds.
53+
Let's build a financial operations agent that can process payments, handle
54+
refunds, create invoices, and analyze financial data using Stripe.
5955
```
6056

61-
Concierge will ask clarifying questions about your specific operations needs,
62-
draft an initial system prompt, and suggest the Stripe connection along with any
63-
other tools you mention.
57+
![Create new agent modal](/images/tutorials/first-operations-agent/operations-agent-description.png)
6458

65-
![Create new agent with Concierge](/images/tutorials/first-operations-agent/create-new-concierge.png)
59+
### Agent profile
6660

67-
## Step 4: Refine and create your agent
61+
You can view and edit agent details in the agent profile. The agent profile
62+
includes the agent name, description, and instructions. You can also view your
63+
threads with this agent as well as manage the agent's tasks and knowledge.
6864

69-
Follow the Concierge agent's guided steps to fully specify your agent's
70-
operational scope. The Concierge will help you define what financial operations
71-
your agent should handle, from simple payment processing to complex refund
72-
policy decisions.
65+
![Agent profile](/images/tutorials/first-operations-agent/operations-agent-profile-view.png)
7366

74-
Once you've fully specified the details, your new operations agent is created
75-
and ready to connect to Stripe.
67+
### Agent instructions
7668

77-
![Hypermode Create Agent](/images/tutorials/first-operations-agent/hypermode-create-agent.png)
69+
You can edit the agent instructions in the agent profile. Editing the agent's
70+
instructions is useful for personalizing your agent and customizing how your
71+
agent will work with you and your team.
7872

79-
Your agent will now appear in the Agents page, ready to be configured with
80-
Stripe access.
73+
![Create agent modal](/images/tutorials/first-operations-agent/edit-operations-agent-instructions.png)
8174

82-
![Hypermode Agent page](/images/tutorials/first-operations-agent/hypermode-agent-page.png)
75+
## Refine your agent instructions
8376

84-
## Step 5: Review your agent details
85-
86-
You can see the details of your agent, including the system prompt that
87-
Concierge created for financial operations.
88-
89-
![Hypermode Agent details](/images/tutorials/first-operations-agent/hypermode-agent-details.png)
90-
91-
## Step 6: Refine your agent instructions
92-
93-
You can review the Instructions. Hypermode Agents behave as the "system prompt"
94-
tells them. Edit the prompt by pasting the template below into the
95-
"Instructions" field:
77+
Optionally, you can edit the agent instructions by pasting the template below
78+
into the "Instructions" field:
9679

9780
```text
9881
## Description
@@ -180,18 +163,26 @@ Example Output Structure:
180163
Always ask if the user needs additional financial reports, policy clarifications, or transaction details.
181164
```
182165

183-
Press **Save**.
184-
185-
## Step 7: Add the Stripe connection
166+
## Add the Stripe connection
186167

187168
Let's configure the Stripe connection so your agent can access your payment
188-
processing capabilities. Select the **"Add connection"** button on the
189-
[Connections](/agents/connections) tab.
169+
processing capabilities.
170+
171+
To add the Stripe connection:
172+
173+
1. Select the Connection tab
174+
2. Select "Connect" next to Stripe in the list of available connections
175+
176+
![Add Stripe connection](/images/connections/stripe/stripe-add-connection.png)
190177

191-
![Connect your agent](/images/tutorials/first-operations-agent/add-connection.png)
178+
### Configure credentials
192179

193-
Search for and select **Stripe** from the available connections. You'll need to
194-
authorize with your Stripe account credentials.
180+
Enter your Stripe credentials:
181+
182+
- **API Key**: Your Stripe secret key (starts with `sk_test_` for test mode or
183+
`sk_live_` for live mode)
184+
185+
![Stripe connection modal](/images/connections/stripe/stripe-configure-connection.png)
195186

196187
For this tutorial, we'll use Stripe's test mode. When prompted for your API key,
197188
use your test key (starts with `sk_test_`).
@@ -204,19 +195,27 @@ use your test key (starts with `sk_test_`).
204195
for connection details.
205196
</Warning>
206197

198+
### Test basic connectivity
199+
200+
Start a new thread and test the connection with a simple query:
201+
202+
```text
203+
Can you check my Stripe account balance?
204+
```
205+
206+
You should see a Stripe tool call in the chat history, confirming the connection
207+
works:
208+
209+
![Test connection](/images/connections/stripe/stripe-test-connection.png)
210+
207211
You can also add additional connections for your operations workflow:
208212

209213
- **Knowledge base** (Notion or Google Docs) for _refund policies and
210214
procedures_
211215
- **Internal communications** (Slack, Teams) for _notifications and approvals_
212216
- **Accounting tools** (QuickBooks, Xero) for _financial record keeping_
213217

214-
![Hypermode Connections](/images/tutorials/first-operations-agent/hypermode-connections.png)
215-
216-
## Step 8: Test with payment operations
217-
218-
Back in threads, let's test your operations agent with some real scenarios. Try
219-
these example requests:
218+
## Test with payment operations
220219

221220
### Create a test payment
222221

@@ -259,7 +258,7 @@ company guidelines.
259258

260259
![Refund processing](/images/tutorials/first-operations-agent/refund-processing.png)
261260

262-
## Step 9: Set up your Stripe test environment
261+
## Set up your Stripe test environment
263262

264263
To fully test your operations agent, let's populate your Stripe test environment
265264
with sample data. Ask your agent:
@@ -276,6 +275,40 @@ Your agent will create realistic test data including:
276275
- Sample successful and failed transactions
277276
- Basic subscription plans
278277

278+
## Comprehensive financial reporting
279+
280+
Our agent can generate a comprehensive financial report and email it to our
281+
stakeholders. We'll use the following instructions to generate the report:
282+
283+
```text
284+
Can you generate a Core Financial Monthly Report? Include:
285+
286+
- Total gross revenue (before fees/refunds)
287+
- Net revenue (after Stripe fees, refunds, and disputes)
288+
- Number of payments processed
289+
- Number of refunds processed
290+
- Number of chargebacks processed
291+
- Number of disputes processed
292+
- Average order value (AOV)
293+
- Customer lifetime value (LTV)
294+
- Churn rate
295+
- MRR
296+
```
297+
298+
After fetching the relevant data from Stripe, our agent will generate a report:
299+
300+
![Financial report](/images/tutorials/first-operations-agent/operations-agent-financial-report.png)
301+
302+
We can then ask our agent to email the report to our stakeholders. We'll first
303+
need to add the Gmail connection to our agent.
304+
305+
![email financial report](/images/tutorials/first-operations-agent/email-draft-toolcall.png)
306+
307+
If we check the email draft, we'll see that our agent has created a draft email
308+
with the report attached.
309+
310+
![email financial report](/images/tutorials/first-operations-agent/email-draft.png)
311+
279312
## What's next?
280313

281314
You can expand what your operations agent can do for you. Edit the
72.4 KB
Loading
303 KB
Loading
56.2 KB
Loading
171 KB
Loading
131 KB
Loading
48.7 KB
Loading
-26.5 KB
Loading
-17.4 KB
Loading

0 commit comments

Comments
 (0)