# Triggering Dialogue

## Trigger Dialogue

If you have a reference to a [dialogue-graph](https://stylishesper.gitbook.io/feel-speak/feel-speak-lite/scripting/api/graph/dialogue-graph "mention"), you can trigger it with the `Trigger` method. Also see [#getting-a-dialogue-graph](https://stylishesper.gitbook.io/feel-speak/feel-speak-lite/api/graph/dialogue-graph#getting-a-dialogue-graph "mention").

```csharp
myDialogueGraph.Trigger();
```

## Interacting With Speakers

There are multiple methods you can use to interact with Speakers. Interacting with speakers will simply trigger dialogue with them if they have a dialogue graph set. Note that you must have [speaker](https://stylishesper.gitbook.io/feel-speak/feel-speak-lite/editors/components/speaker "mention")s set up properly for your game.

First of all, you may want to let Feel Speak know which Speaker is the player.

```csharp
FeelSpeak.activePlayerSpeaker = myPlayerSpeaker;
```

If you're using the [feel-speak-initializer](https://stylishesper.gitbook.io/feel-speak/feel-speak-lite/editors/components/feel-speak-initializer "mention") component, it may not be necssary to do this manually through code.

### Interact With Closest

`FeelSpeak.InteractWithClosestSpeaker` simply interacts with the closest `Speaker` that is in range of the player.

```csharp
FeelSpeak.InteractWithClosestSpeaker();
```

### Interact With Specific

You can interact with a specific `Speaker` with the `Interact` or `TriggerDialogue` methods.

```csharp
speakerToInteractWith.Interact();
```

```csharp
speakerToInteractWith.TriggerDialogue();
```
