# Build your first workflow

> Create a small workflow that fires on a timer, wire it to an action, apply it and confirm it ran.

This walks through building the smallest real workflow (something that runs on its own, without a button press) end to end: create it, wire two nodes together, apply it, and confirm it actually ran. For the concepts behind values, events, and the editor's own display conventions, see [Understand workflows](/docs/buttons/v1.10/workflows/understand-workflows).

## Before you begin

- Access to create and edit workflows.

## Create the workflow

1. Open **Workflow** and select **Create**.
2. Give it a **Label** and select **Create**.

This opens straight into the workflow editor, with an empty canvas and the **Node Pool** panel on the right.

## Add a node that fires on its own

1. In **Node Pool**, search for **Interval** and drag it onto the canvas.
2. Set **Interval (ms)** to how often it should fire: for example, `30000` for every 30 seconds.

An Interval Timer exposes two outputs: **Timestamp** (a value, updated on every tick) and **Event** (fires once per tick). The white dot marks a value handle; the amber dot marks an event handle; see [Understand workflows](/docs/buttons/v1.10/workflows/understand-workflows#understand-what-the-editor-shows) for what that distinction means for how nodes can connect.

## Add an action to respond to it

1. Search **Node Pool** for **Internal Action** and drag it onto the canvas next to the Interval Timer.
2. Drag from the Interval Timer's **Event** output to the Internal Action's own **Event** input to connect them.
3. In the Internal Action's **Action** field, search for and select **Log Message**.
4. Enter text in **Message**.

![An Interval Timer set to 30000 ms with its Event output wired to an Internal Action's Event input, the action set to Log Message with the message Hello from Buttons; both nodes still have dashed amber borders and Apply is highlighted](https://bitfocus.io/api/docs-media/file/wired-before-apply.png?prefix=docs-media)

This is the same Internal Action / action-picker pattern used on a button (see [Internal actions reference](/docs/buttons/v1.10/reference/internal-actions)) placed on a workflow canvas instead, and triggered by an event rather than a press.

## Apply and confirm it ran

Select **Apply**. Once the workflow has initialized, **Completed {N}s ago** appears next to **Auto layout**, and the nodes' dashed amber borders turn solid.

Wait for the interval to fire, then turn on **Show Debug** in the panel at the bottom right of the editor, and expand the Internal Action node's **Debug** section. A real run shows `"status": "done"` along with the action's resolved options, confirming the node actually executed, not just that it saved correctly.

![The same two nodes after Apply, with solid borders, the wire highlighted amber, Completed 4s ago next to Auto layout, and the Internal Action's Debug section open showing status done and the message Hello from Buttons](https://bitfocus.io/api/docs-media/file/debug-after-run.png?prefix=docs-media)

## If you get stuck

| What you see | What to try |
| --- | --- |
| Nothing happens after Apply. | Confirm the Interval Timer's own enable toggle is on, and that the wire actually connects to the Internal Action's **Event** input, not its **Action** input. |
| A node keeps a dashed amber border. | It hasn't initialized yet: select **Apply** again. |
| You're not sure whether it's actually running. | Turn on **Show Debug** and expand the node's **Debug** section rather than trusting the canvas alone: see [Troubleshoot a workflow](/docs/buttons/v1.10/workflows/test-and-troubleshoot) for the full set of signals. |

## Where to go next

- [Understand workflows](/docs/buttons/v1.10/workflows/understand-workflows), for the value/event model this example relies on.
- [Workflow node reference](/docs/buttons/v1.10/reference/workflow-nodes), to see every available node.
- A focused recipe: [sequence a timed automation](/docs/buttons/v1.10/workflows/recipes/timing), [call an HTTP endpoint](/docs/buttons/v1.10/workflows/recipes/http-request), or [expose a small authenticated REST endpoint](/docs/buttons/v1.10/workflows/recipes/rest-server).
- [Troubleshoot a workflow](/docs/buttons/v1.10/workflows/test-and-troubleshoot), once something more complex doesn't behave as expected.
