> ## Documentation Index
> Fetch the complete documentation index at: https://www.voiceflow.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# vf conversation run-script

> vf conversation run-script: run script. Requires --environment-alias, --messages and --project-id, with a worked example.

Run a list of user messages as one new conversation.

## Usage

```bash
vf conversation run-script [flags]
```

## Examples

```bash
  vf conversation run-script --project-id <id> --environment-alias <value> --messages '["<value 1>","<value 2>","<value 3>"]'
```

## Flags

```text
      --body string                Request body as JSON (alternative to individual flags). Can also be provided via stdin.
  -e, --environment-alias string   [required]
  -h, --help                       help for run-script
  -l, --launch string              How the conversation starts; payload is its only field. Leave it out for a plain launch.
  -m, --messages string            The user messages to send, in order, after the launch. A message is typed text, as a string or { "text": "…" }, or a button press, as { "button": "<label>" }, for a button the reply before offered. The digest shows offered buttons as "[buttons: Yes | No]". [required]
  -p, --project-id string          [required]
  -u, --user-id string             The conversation user ID to run as; the agent reads it as the user_id variable. Use it when the agent expects a caller ID of a known shape, such as a phone number, and make one up: never a real customer's ID. Draft version only. Leave it out to run as a new user each time. A reused ID keeps the variables an earlier conversation with it left.
      --variables string           Variable values to set before the launch, keyed by variable name, to start as a known caller. Next to messages, not inside launch.
      --version-param string       Whether to talk to the draft or the published version of the environment. Draft unless you pass it. (options: draft, published) (default "draft")
```

## Global flags

These flags are inherited from the parent command and work on every invocation.

```text
      --agent-mode             Enable structured errors and default TOON output for AI coding agents. Automatically enabled when a known agent environment is detected (CLAUDE_CODE, CURSOR_AGENT, etc.). Use --agent-mode=false to disable.
      --color string           Control colored output: auto (color when output is a TTY), always, or never. Respects NO_COLOR and FORCE_COLOR env vars. (default "auto")
  -d, --debug                  Log request and response diagnostics to stderr
      --dry-run                Preview the request that would be sent without executing it (output to stderr)
  -H, --header stringArray     Set a custom HTTP request header (format: "Key: Value"). Can be specified multiple times.
      --include-headers        Include HTTP response headers in the output
  -q, --jq string              Filter and transform output using a jq expression (e.g., '.name', '.items[] | .id')
      --no-interactive         Disable all interactive features (auto-prompting, explorer auto-launch, TUI forms)
  -o, --output-format string   Specify the output format. Options: pretty, json, yaml, table, toon. (default "pretty")
      --server-url string      Override the default server URL
      --timeout string         HTTP request timeout (e.g., 30s, 5m, 100ms)
      --token string           Voiceflow bearer token
      --usage                  Print the CLI Usage schema in KDL format
```

## See also

- [vf conversation](/docs/cli/commands/conversation) - Operations for conversation
