Create a workflow share link
tch_abc123
portion of the URL represents the unique workflow template ID. Copy this, you’ll need it in the following steps.Create the workflow, and view the parameters
triggers
- represents the triggers for the workflow.steps
- represents the series of steps within your workflowtriggers
and steps
contain props that define the connected accounts as well as configuration.The next step is to learn how we can pass our specific connected accounts to app based props in the steps
and/or triggers
of the workflow template.Within the steps
and triggers
, find the configurable_props
for the trigger. Here is where you can find the available slots that you can programmtically provide configuration for the Create Workflow endpoint:url
property, and the Slack step as a slack
, channelId
and message
property. We’ll use these names in the next steps as arguments for the Create Workflow endpoint.Design the payload
triggers
and steps
of the workflow, let’s design the payload for creating a new instance of the workflow.First, populate the project_id
and org_id
where you’d like this new workflow to be instantiated under. Please refer to the Create Workflow parameters documentation on how to find these values.The template_id
for your workflow can be found from the URL of the workflow share link you created in Step 1 of this guide.The trigger
as a url
prop, so let’s provide it with a specific URL (https://hnrss.org/newest?q=Pipedream
) for this new workflow:namespace
argument to the trigger in our payload. This is because triggers are ordered sequentially, whereas steps need a namespace
argument for proper addressing.steps
props.The Slack - Send message in a Public Channel step requires a channelId
, message
and the connected Slack account (slack
). Let’s start with connecting the Slack account.Find your connected accounts
query
query parameter. For example, if you want to find your connected Slack accounts to your workspace, then add slack
to the query param:apn_******
value of the connected accounts from the response you’d like to use for the steps.apn_abc123
.Given we now have the connected account ID, we can design the rest of the payload:send_message
step in our workflow with our connected Slack account and specific channelId
and message
parameters.Define settings (optional)
auto_deploy
option instructs Pipedream to deploy this workflow automatically, without requiring a manual deployment from the dashboard.Send the request