> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.dialogue/yarn.dialogue.setnode.md).

# SetNode(string)

Method in [Dialogue](/api/csharp/yarn/yarn.dialogue.md)

## Summary

Prepares the [Dialogue](/api/csharp/yarn/yarn.dialogue.md) that the user intends to start running a node.

```csharp
public void SetNode(string startNode = DefaultStartNodeName)
```

## Remarks

After this method is called, you call [Continue()](/api/csharp/yarn/yarn.dialogue/yarn.dialogue.continue.md) to start executing it.

If [PrepareForLinesHandler](/api/csharp/yarn/yarn.dialogue/yarn.dialogue.prepareforlineshandler.md) has been set, it may be called when this method is invoked, as the Dialogue determines which lines may be delivered during the `startNode` node's execution.

## Parameters

| Name               | Description                                                                                                                                                     |
| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `string` startNode | The name of the node that will be run. The node have been loaded by calling [SetProgram(Program)](/api/csharp/yarn/yarn.dialogue/yarn.dialogue.setprogram.md) . |
