# Response variations with custom metadata

**URL:** <https://forum.rasa.com/t/response-variations-with-custom-metadata/40359>\
**Category:** Rasa Open Source\
**Created:** [February 18, 2021, 6:02pm UTC](https://forum.rasa.com/t/response-variations-with-custom-metadata/40359 "2021-02-18T18:02:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tatianaf](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tatianaf/32/7906_2.png) [@tatianaf](https://forum.rasa.com/u/tatianaf)\
**Post date:** [February 18, 2021, 6:02pm UTC](https://forum.rasa.com/t/response-variations-with-custom-metadata/40359/1 "2021-02-18T18:02:21Z")

</div>

I’m trying to craft a rasa response yaml object that has both response variations ([Responses](https://rasa.com/docs/rasa/responses/#response-variations)) and custom metadata ([Responses](https://rasa.com/docs/rasa/responses/#custom-output-payloads)) but I can’t find a way to do both. I tried the below format but then the custom json does not get sent, only the text. And if I put the text inside the custom payload then Rasa will not randomly select one of the test responses for me:

```
  utter_interject_confirm:
  - text: I can help you with that question.
  - text: "OK, here's what I found:"
  - text: Happy to help with that question.
  - text: 'OK, this might help:'
    custom:
      type: interjection
```

---

<div class="post-metadata">

**Author:** ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)\
**Post date:** [February 19, 2021, 6:40pm UTC](https://forum.rasa.com/t/response-variations-with-custom-metadata/40359/2 "2021-02-19T18:40:59Z")

</div>

Can you open a [github issue](https://github.com/RasaHQ/rasa/issues) for this and would you consider submitting a PR to fix the issue?

---

<div class="post-metadata">

**Author:** ![tatianaf](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tatianaf/32/7906_2.png) [@tatianaf](https://forum.rasa.com/u/tatianaf)\
**Post date:** [February 22, 2021, 6:43pm UTC](https://forum.rasa.com/t/response-variations-with-custom-metadata/40359/3 "2021-02-22T18:43:26Z")

</div>

I figured it out. This format works:

```
  utter_interject_confirm:
  - custom:
      type: interjection
      text: I can help you with that question.
  - custom:
      type: interjection
      text: "OK, here's what I found:"
  - custom:
      type: interjection
      text: Happy to help with that question.
```

---

<div class="post-metadata">

**Author:** ![vocuzi](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/vocuzi/32/20645_2.png) [@vocuzi](https://forum.rasa.com/u/vocuzi)\
**Post date:** [May 24, 2022, 10:37am UTC](https://forum.rasa.com/t/response-variations-with-custom-metadata/40359/4 "2022-05-24T10:37:16Z")

</div>

Hey @tatianaf do you know how to have channel specific custom responses ?
