diff --git a/src/content/docs/workflows/get-started/cli-quick-start.mdx b/src/content/docs/workflows/get-started/cli-quick-start.mdx index bad746ae9faae60..57eb9160792d10a 100644 --- a/src/content/docs/workflows/get-started/cli-quick-start.mdx +++ b/src/content/docs/workflows/get-started/cli-quick-start.mdx @@ -161,7 +161,7 @@ You can run a Workflow via the `wrangler` CLI, via a Worker binding, or via the ```sh # Trigger a Workflow from the CLI, and pass (optional) parameters as an event to the Workflow. -npx wrangler@latest workflows trigger workflows-tutorial --params={"hello":"world"} +npx wrangler@latest workflows trigger workflows-tutorial --params={"email": "user@example.com", "metadata": {"id": "1"}} ``` Refer to the [events and parameters documentation](/workflows/build/events-and-parameters/) to understand how events are passed to Workflows. diff --git a/src/content/docs/workflows/get-started/guide.mdx b/src/content/docs/workflows/get-started/guide.mdx index 85f90a645813da3..0be53a15ed6fce3 100644 --- a/src/content/docs/workflows/get-started/guide.mdx +++ b/src/content/docs/workflows/get-started/guide.mdx @@ -125,9 +125,9 @@ When trying to decide whether to break code up into more than one step, a good r For example, each of the below tasks is ideally encapsulated in its own step, so that any failure — such as a file not existing, a third-party API being down or rate limited — does not cause your entire program to fail. -* Reading or writing files from R2 +* Reading or writing files from [R2](/r2/) * Running an AI task using [Workers AI](/workers-ai/) -* Querying a D1 database or a database via [Hyperdrive](/hyperdrive/) +* Querying a [D1 database](/d1/) or a database via [Hyperdrive](/hyperdrive/) * Calling a third-party API If a subsequent step fails, your Workflow can retry from that step, using any state returned from a previous step. This can also help you avoid unnecessarily querying a database or calling an paid API repeatedly for data you have already fetched. @@ -159,7 +159,7 @@ name = "workflows-starter" binding = "MY_WORKFLOW" # this is class that extends the Workflow class in src/index.ts class_name = "MyWorkflow" -# script_name is required during for the beta. +# script_name is required during the beta. # Must match the "name" of your Worker at the top of wrangler.toml script_name = "workflows-starter" ``` @@ -328,7 +328,7 @@ Your worker has access to the following bindings: - MY_WORKFLOW: MyWorkflow (defined in workflows-starter) Uploaded workflows-starter (2.53 sec) Deployed workflows-starter triggers (1.12 sec) - https://workflows-starter.silverlock.workers.dev + https://workflows-starter.YOUR_WORKERS_SUBDOMAIN.workers.dev workflow: workflows-starter ```