You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To learn more about components in detail, please visit our [Components
21
-
guide](/components).
12
+
In Pipedream, [components](/components) are self-contained executable units of code. Your end users configure the inputs and the components produce a
13
+
result that's exported as output. These components are developed and maintained by Pipedream
14
+
and our community and their source code is available in our [public Github repo](https://github.com/PipedreamHQ/pipedream/tree/master/components).
22
15
23
16
<Callouttype="info">
24
17
Running components for your end users via Pipedream Connect is in **beta**, and we're looking for feedback. Please [let us know](https://pipedream.com/support) how you're using it, what's not working, and what else you'd like to see.
25
18
</Callout>
26
19
27
-
## How to run components for your end users
20
+
## Getting stated
28
21
29
22
<Callouttype="info">
30
23
Refer to the [Connect API docs](/connect/api) for the full API reference. Below is a quickstart with a few specific examples.
24
+
25
+
You can skip steps 1 and 2 if you already know the component you want to use or if you'd prefer to [pass a natural language prompt to Pipedream's component search API](/rest-api#search-for-registry-components).
31
26
</Callout>
32
27
33
28
<Steps>
34
29
35
30
### Find the app you want to use
36
31
37
-
<Callouttype="info">
38
-
You can also skip steps 1 and 2 if you already know the component you want to use or if you'd prefer to [pass a natural language prompt to Pipedream's component search API](/rest-api#search-for-registry-components).
39
-
</Callout>
40
-
41
-
In order to find the right trigger or action to configure and run, you first need to find the app. For this example, we'll search for `gitlab`.
32
+
In order to find the right trigger or action to configure and run, you first need to find the app. In this example, we'll search for `gitlab`.
42
33
43
34
```text
44
35
GET /v1/connect/apps?q=gitlab
@@ -145,7 +136,7 @@ Here's the response:
145
136
```
146
137
### Retrieve the component's definition
147
138
148
-
In order to run a component for your end users, you need to understand
139
+
To configure and run a component for your end users, you need to understand
149
140
the component's definition. Now that you have the component's key from the previous step,
150
141
you can retrieve its structure from the Pipedream API. See the [component
151
142
structure](/components/api#component-structure) section in our docs for more
@@ -158,11 +149,10 @@ Commits** action for Gitlab:
158
149
GET /v1/connect/components/gitlab-list-commits
159
150
```
160
151
161
-
The response will contain the component's structure, including its
162
-
(human-understandable) name, version, and most importantly, the configuration
163
-
options that the component accepts (also known as [props](/components/api#props)
164
-
or "properties"). Here's an example of the response for the component in the
165
-
example above:
152
+
The response will contain the component's structure, including its user-friendly name,
153
+
version, and most importantly, the configuration options the component accepts
154
+
(also known as [props](/components/api#props) or "properties").
155
+
Here's an example of the response for the component in the example above:
166
156
167
157
```json
168
158
{
@@ -213,9 +203,8 @@ Component execution on behalf of your end users requires a few preliminary
213
203
steps, focused on getting the right input parameters (aka
214
204
[props](/workflows/using-props)) to the component.
215
205
216
-
Configuring each prop for a component usually involves an API call to our
217
-
backend to retrieve the possible values, unless the values that a prop can take
218
-
are static/free-form. The endpoint is accessible at:
206
+
Configuring each prop for a component often involves an API call to retrieve the possible values,
207
+
unless the values that a prop can take are static or free-form. The endpoint is accessible at:
219
208
220
209
```text
221
210
POST /v1/connect/components/configure
@@ -224,7 +213,7 @@ POST /v1/connect/components/configure
224
213
Typically, the options for a prop are linked to a specific user's account. Each
225
214
of these props implements an `options` method that retrieves the necessary
226
215
options from the third-party API, formats them, and sends them back in the
227
-
response for the end user to select.
216
+
response for the end user to select. Examples are listing Slack channels, Google Sheets, etc.
228
217
229
218
The payload for the configuration API call must contain the following fields:
230
219
@@ -235,7 +224,7 @@ The payload for the configuration API call must contain the following fields:
235
224
configured. The initial configuration call must contain the ID of the account
236
225
(aka `authProvisionId`) that your user has connected to the target app (see
237
226
[this section](workflows#configure-accounts-to-use-your-end-users-auth) for
Copy file name to clipboardExpand all lines: docs-v2/pages/connect/environments.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Pipedream customers on any plan can use all of the Connect features in `developm
10
10
</Callout>
11
11
12
12
13
-
## How to specify environment
13
+
## How to specify the environment
14
14
15
15
You specify the environment when [creating a new Connect token](/connect/api/#create-a-new-token) with the Pipedream SDK or API. When users succesfully connect their account, Pipedream saves the account credentials (API key, access token, etc) for that `external_user_id` in the specified environment.
16
16
@@ -41,7 +41,7 @@ curl -X POST https://api.pipedream.com/v1/connect/{project_id}/tokens \
41
41
```
42
42
43
43
<Callouttype="warning">
44
-
When connecting an account in `development`, make sure you're signed in to pipedream.com in the same browser where you're connecting your account. This is only a requirement for the `development` environment. **You should only use the `development` environment with your own accounts when testing and developing, and not with your end users.**
44
+
When connecting an account in `development`, make sure you're signed in to pipedream.com in the same browser where you're connecting your account. This is only a requirement for the `development` environment. **You should only use `development` with your own accounts when testing and developing, and not with your end users.**
Copy file name to clipboardExpand all lines: docs-v2/pages/connect/index.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,8 +13,8 @@ Connect lets you:
13
13
14
14
1. Handle authorization or accept API keys on behalf of your users, for any of Pipedream's [{process.env.PUBLIC_APPS}+ APIs](https://pipedream.com/apps). Use the [Client SDK](https://github.com/PipedreamHQ/pipedream/tree/master/packages/sdk) or [Connect Link](/connect/quickstart#use-connect-link) to accept auth in minutes.
15
15
2. Securely retrieve OAuth access tokens, API keys, and other credentials for your end users with Pipedream's [REST API](/connect/api)
16
-
3. Run workflows for your end users with Pipedream's [workflow builder](/workflows), [serverless runtime](/), and thousands of no-code [triggers](/workflows/triggers) and [actions](/workflows/actions). Build complex integrations in minutes, writing code when you need it and using no-code components when you don't. Pipedream workflows are easy to modify, debug, and scale.
17
-
4.Run [any Pipedream action](https://pipedream.com/explore) or [deploy any Pipedream trigger](https://pipedream.com/explore) on behalf of your users, directly from within your application.
16
+
3.[Run workflows](/connect/workflows) for your end users with Pipedream's [workflow builder](/workflows), [serverless runtime](/), and thousands of no-code [triggers](/workflows/triggers) and [actions](/workflows/actions). Build complex integrations in minutes, writing code when you need it and using no-code components when you don't. Pipedream workflows are easy to modify, debug, and scale.
17
+
4.[Embed any Pipedream action or trigger](/connect/components) to run on behalf of your users, directly from within your application.
18
18
19
19
<br />
20
20
@@ -61,7 +61,7 @@ So if user `abc-123` in your application connects their Slack account in `produc
61
61
62
62
## Plans and pricing
63
63
64
-
**Connect is free to use for up to 1,000 connected accounts for any workspace**.
64
+
**Managed authentication with Connect is free to use for up to 1,000 connected accounts for any workspace**. Check out our [pricing page](https://pipedream.com/pricing?plan=Enterprise) for details on running workflows and embedding components in your app.
Pipedream Connect is the easiest way for your users to connect to [over {process.env.PUBLIC_APPS}+ APIs](https://pipedream.com/apps), **right in your product**. You can build in-app messaging, CRM syncs, AI agents, [and much more](/connect/use-cases), all in a few minutes.
9
9
@@ -94,7 +94,7 @@ Once you have a token, return it to your frontend to start the account connectio
94
94
Refer to the API docs for [full set of parameters you can pass](/connect/api#create-a-new-token) in the `ConnectTokenCreate` call.
95
95
</Callout>
96
96
97
-
### Connect a user's account
97
+
### Connect your user's account
98
98
99
99
To connect a third-party account for a user, you have two options:
100
100
@@ -144,7 +144,7 @@ export default function Home() {
144
144
145
145
Press that button to connect an account for the app you configured.
146
146
147
-
#### Use Connect Link
147
+
#### Or use Connect Link
148
148
149
149
Use this option when you can't execute JavaScript or open an iFrame in your environment (e.g. mobile apps), or when you want to offload the account connection flow to Pipedream and avoid frontend work. You can also send these links via email or SMS.
4. Redirect your users to this URL, or send it to them via email, SMS, and more.
162
162
163
-
### Retrieve the credentials from the backend
163
+
### Make authenticated requests
164
164
165
-
Once your user connects an account, you can retrieve their credentials from your backend.
165
+
Now that your users have connected an account, you can use their auth in one of a few ways:
166
166
167
-
This example shows you how to fetch credentials by your end user's `external_user_id`. You can also fetch all connected accounts for a specific app, or a specific user — see the [Connect API reference](/connect/api).
168
-
169
-
<Tabsitems={['TypeScript', 'Node.js']}>
170
-
<Tabs.Tab>
171
-
```typescript
172
-
import {
173
-
createBackendClient,
174
-
} from"@pipedream/sdk/server";
175
-
176
-
const pd =createBackendClient({
177
-
environment: "development", // change to production if running for a test production account, or in production
0 commit comments