# How to add string to dispatcher.utter\_message

**URL:** <https://forum.rasa.com/t/how-to-add-string-to-dispatcher-utter-message/51139>\
**Category:** Rasa Open Source\
**Created:** [February 4, 2022, 11:49pm UTC](https://forum.rasa.com/t/how-to-add-string-to-dispatcher-utter-message/51139 "2022-02-04T23:49:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![userRasa03](https://avatars.discourse-cdn.com/v4/letter/u/da6949/32.png) [@userRasa03](https://forum.rasa.com/u/userRasa03)\
**Post date:** [February 4, 2022, 11:49pm UTC](https://forum.rasa.com/t/how-to-add-string-to-dispatcher-utter-message/51139/1 "2022-02-04T23:49:26Z")

</div>

hey

trying to add a message to `"utter_greet_name"` to send via custom action. I tried:

`dispatcher.utter_message(response = "This is a test" + "utter_greet_name")`

But it does not work. How can it be done from a custom action? I basically want to add notes to the utterance in domain.yml

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [February 7, 2022, 9:37pm UTC](https://forum.rasa.com/t/how-to-add-string-to-dispatcher-utter-message/51139/2 "2022-02-07T21:37:53Z")

</div>

You can’t do that. It will look for a response called `This is a testutter_greet_name`.

You can either send the whole text:

```auto
dispatcher.utter_message(response = "This is a test" + ". Hello Megan. How are you?")

```

or modify your `utter_greet_name` in the domain and just utter the response:

```auto
dispatcher.utter_message(response = "utter_greet_name")

```

or use [variables in responses](https://rasa.com/docs/rasa/responses#using-variables-in-responses):

```auto
responses:
  utter_greet_name:
  - text: "{prefix}. Hello {name}, how are you?"

```

```python
dispatcher.utter_message(response = "utter_greet_name", prefix = "This is a test")

```

---

<div class="post-metadata">

**Author:** ![userRasa03](https://avatars.discourse-cdn.com/v4/letter/u/da6949/32.png) [@userRasa03](https://forum.rasa.com/u/userRasa03)\
**Post date:** [February 8, 2022, 4:26pm UTC](https://forum.rasa.com/t/how-to-add-string-to-dispatcher-utter-message/51139/3 "2022-02-08T16:26:14Z")

</div>

thanks @ChrisRahme this is good. I cant find the ‘solution’ button to mark this. Could you maybe look at my other post too? thanks [Intent recognition extremely low how to improve?](http://forum.rasa.com/t/intent-recognition-extremely-low-how-to-improve/51209)

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [February 8, 2022, 4:33pm UTC](https://forum.rasa.com/t/how-to-add-string-to-dispatcher-utter-message/51139/4 "2022-02-08T16:33:46Z")

</div>

Happy to help 🙂

> [@userRasa03](#):
>
> I cant find the ‘solution’ button to mark this.

It’s because the topic was set to “Feedback on Rasa Open Source”. I changed it, so you should find the button now. Thanks ! 🙂

> [@userRasa03](#):
>
> Could you maybe look at my other post too?

Sure! My schedule is very tight but I look at all the posts here 🙂 I’ll see what I can do in a bit, if I don’t answer it means I can’t help (or someone already answered)
