Skip to content

Workflow body parameters? #30047

Description

@JamesNK

I want my workflow to be easily configurable. e.g. someone can take it, then change a branch name or repo name in one place, and it applies everywhere.

At the moment I'm doing that with env vars:

Build a report for ${PRODUCT}

Then there is also a note in the workflow body, e.g.

${PRODUCT} matches to Contoso.

Is there a better way to do this? Ideally the placeholder in the agent body would be replaced before it is send to the LLM, e.g. Build a report for Contoso and not Build a report for ${PRODUCT}.

It's not clear to be whether env vars do that today or not. I want them replaced before the agent is called so replacement is deterministic.

Activity

  1. locked and limited conversation to collaborators on May 4, 2026
  2. unlocked this conversation on May 4, 2026
  3. changed the title [-]Workflow body configuration?[/-] [+]Workflow body parameters?[/+] on May 4, 2026
  4. pelikhan commented on Oct 7, 2026

    @pelikhan
    Collaborator

    @copilot update documentation FAQ on using workflow_dispatch inputs as parameters and env vars in prompt body.

  5. pelikhan commented on Oct 7, 2026

    @pelikhan
    Collaborator

    Status (2026-10-07; Maintainer direction): In the October 7 discussion, a maintainer requested an FAQ update on using workflow_dispatch inputs as parameters and environment variables in the prompt body. The next step is to document the supported pattern and clarify whether placeholder replacement occurs before the agent receives the prompt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions