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
Copy file name to clipboardExpand all lines: docs-v2/pages/connect/environments.mdx
+1-1
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Pipedream Connect projects support two environments: `development` and `producti
9
9
2. In `development`, you can use the official Pipedream OAuth clients, so you can test integrations without creating your own OAuth client, and you can also use features that are typically only available on higher paid tiers, like [running workflows on behalf of your end users](/connect/workflows).
10
10
11
11
<Callouttype="warning">
12
-
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.
12
+
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.**
Copy file name to clipboardExpand all lines: docs-v2/pages/connect/workflows.mdx
+44-2
Original file line number
Diff line number
Diff line change
@@ -34,9 +34,13 @@ Read [the quickstart](/quickstart/) to learn more.
34
34
35
35
<Steps>
36
36
37
+
### Enable the feature flag
38
+
39
+
Go to [https://pipedream.com/settings/alpha](https://pipedream.com/settings/alpha) and click the checkbox, **Allow use Connect in builder**.
40
+
37
41
### Create an OAuth client
38
42
39
-
**This step is optional but strongly recommended.** To securely run workflows for end users, you'll need to first[create a Pipedream OAuth client](/rest-api/auth#creating-an-oauth-client). Pipedream uses OAuth to authenticate requests to the Pipedream API and workflows.
43
+
**This step is optional but strongly recommended.** To securely run workflows for end users, you should[create a Pipedream OAuth client](/rest-api/auth#creating-an-oauth-client). Pipedream uses OAuth to authenticate requests to the Pipedream API and workflows.
40
44
41
45
42
46
### Create a workflow
@@ -110,7 +114,7 @@ npm i @pipedream/sdk
110
114
111
115
To invoke workflows, you'll need:
112
116
113
-
1. The OAuth client ID and secret from your [workspace settings](rest-api/auth#oauth)
117
+
1. The OAuth client ID and secret from your OAuth client in **[step 2](#create-an-oauth-client)**
114
118
2. Your [Project ID](/projects#finding-your-projects-id)
115
119
3. Your workflow's HTTP endpoint URL
116
120
4. The [external user ID](/connect/api#external-users) of the user you'd like to run the workflow for
@@ -198,6 +202,44 @@ curl -X POST https://{your-endpoint-url} \
198
202
</Tabs>
199
203
</Steps>
200
204
205
+
## Step configuration
206
+
207
+
When configuring a workflow that's using your end user's auth instead of your own, you'll need to define most configuration fields manually in each step.
208
+
209
+
For example, normally when you connect your own Google Sheets account directly in the builder, you can dynamically list all of the available sheets from a dropdown.
However, when running workflows on behalf of your end users, that UI configuration doesn't work, since the Google Sheets account to use is determined at the time of workflow execution. So instead, you'll need to configure these fields manually.
216
+
217
+
- Either make sure to pass all required configuration data when invoking the workflow, or add a step to your workflow that retrieve it from your database, etc. For example:
We plan to improve this interface in the future, and potentially allow developers to store end user metadata and configuration data alongside the connected account for your end users, so you won't need to pass the data at runtime.
241
+
</Callout>
242
+
201
243
## Errors
202
244
203
245
#### No external user ID passed, but one or more steps require it
0 commit comments