diff --git a/docs/images/what_is_a_parameter/workflow_block_output_example.png b/docs/images/what_is_a_parameter/workflow_block_output_example.png new file mode 100644 index 0000000000..b43fb73e89 Binary files /dev/null and b/docs/images/what_is_a_parameter/workflow_block_output_example.png differ diff --git a/docs/workflows/what-is-a-parameter.mdx b/docs/workflows/what-is-a-parameter.mdx index 1844a11eee..555d46acb8 100644 --- a/docs/workflows/what-is-a-parameter.mdx +++ b/docs/workflows/what-is-a-parameter.mdx @@ -87,9 +87,14 @@ Create this value when you have details that vary from run-to-run: -## Future Plans for Parameters +## Referencing Parameters Using JINJA2 Templating Syntax -Our main goal is to make every field a parameterized field and remove block parameters +You can reference any parameter in your workflows by using the `{{ parameter_key }}` syntax in any input field. -* We know it’s confusing, but it’s only temporary! In the future we’re headed toward loading parameters directly into each input field. -* One day, your prompt may look like “Find the invoices page using **/how_to_find_invoices_page**, filter the invoices using **/start_date** and **/end_date** provided.” Or perhaps brackets as are traditionally used in code. +For example, if you have a parameter with the key `website_url`, you can reference it in a task block by using `{{ website_url }}` in the URL field. + +### Referencing Block Output +A block can have output. To reference the output of a block, you can use the `{{ block_label.output }}` syntax. + +In the following example, the "send_email" block references the output of "extract_stock_price" block in the body field and sends an email with the stock price. + \ No newline at end of file