Prefills allow you to define the input fields on behalf of the user, simplying the experience of setting up their Zap.
https://api.zapier.com/v1/embed/space-by-zapier/create?steps[0][app]=WeatherCLIAPI@latest&steps[0][action]=today_forecast&steps[0][params][latitude]=40.7127&steps[0][params][longitude]=-74.0059&steps[1][app]=SlackAPI&steps[1][action]=direct_message
Embed
→ Pre-Filled Zaps
and scroll down to the generator.
Screenshot of pre-Filled Zaps tab
Select an app
Screenshot of generator trigger step setup
Select the fields you want to pre-fill
Screenshot of prefill input field options
Test the Zap
steps
parameters with increased indeces.
Fetch the Zap Template's create_url
create_url
property from the specific Zap Template desired. This can be retrieved from the zap-templates endpoint. It follows the following format: https://api.zapier.com/v1/embed/{app_name}/create/{template_id}
Define the input values
step[{step_index}][params][{param_name}]
- with steps being zero-indexed. As an example, Trello could prefill the name of a Trello card name
in the second step of the Zap template using the following:https://api.zapier.com/v1/embed/trello/create/113?steps[1][params][name]=hello
where the create_url
of https://api.zapier.com/v1/embed/trello/create/113
was retrieved from the zap-templates endpoint, and input fields defined in their zapier integration.Zap Editor showing `hello` pre-filled into the name field of a new Zap titled Create Card in Trello
name
and desc
are prefilled
template=113
steps[1][params][name]=yoyoyo
steps[1][params][desc]=yeehaw
Zap Editor showing `yoyoyo` pre-filled into the name field, and `yeehaw` pre-filled into the description field of a new Zap titled Create Card in Trello
template=113
steps[1][params][board]=1234
steps[1][meta][parammap][board]=Test
Zap Editor showing `Test` pre-filled into the board field of a new Zap titled Create Card in Trello