# How to place a video in Rasa Chatbot

**URL:** <https://forum.rasa.com/t/how-to-place-a-video-in-rasa-chatbot/26824>\
**Category:** Rasa Open Source\
**Created:** [March 31, 2020, 10:13am UTC](https://forum.rasa.com/t/how-to-place-a-video-in-rasa-chatbot/26824 "2020-03-31T10:13:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![skjainmiah](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@skjainmiah](https://forum.rasa.com/u/skjainmiah)\
**Post date:** [March 31, 2020, 10:13am UTC](https://forum.rasa.com/t/how-to-place-a-video-in-rasa-chatbot/26824/1 "2020-03-31T10:13:24Z")

</div>

I tried many ways but I’m not getting the video in Rasa Chat. How to write custom function to display video in rasa chatbot.

---

<div class="post-metadata">

**Author:** ![n2718281](https://avatars.discourse-cdn.com/v4/letter/n/4bbf92/32.png) [@n2718281](https://forum.rasa.com/u/n2718281)\
**Post date:** [March 31, 2020, 12:06pm UTC](https://forum.rasa.com/t/how-to-place-a-video-in-rasa-chatbot/26824/2 "2020-03-31T12:06:00Z")

</div>

I guess it depends of your frontend. If it supports markdown, you probably can use the markdown syntax.

---

<div class="post-metadata">

**Author:** ![skjainmiah](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@skjainmiah](https://forum.rasa.com/u/skjainmiah)\
**Post date:** [March 31, 2020, 12:07pm UTC](https://forum.rasa.com/t/how-to-place-a-video-in-rasa-chatbot/26824/3 "2020-03-31T12:07:52Z")

</div>

@n2718281 Can I have code so that I may get some Idea how should I write.

---

<div class="post-metadata">

**Author:** ![n2718281](https://avatars.discourse-cdn.com/v4/letter/n/4bbf92/32.png) [@n2718281](https://forum.rasa.com/u/n2718281)\
**Post date:** [March 31, 2020, 12:56pm UTC](https://forum.rasa.com/t/how-to-place-a-video-in-rasa-chatbot/26824/4 "2020-03-31T12:56:23Z")

</div>

Something like that

```
[![Image legend](http://img.youtube.com/vi/rlAQWbhwqLA/0.jpg)](http://www.youtube.com/watch?v=rlAQWbhwqLA)

```

or like that if you use [GitHub - botfront/rasa-webchat: A chat widget for Rasa and Botfront](https://github.com/botfront/rasa-webchat)

```
attachment: 
 type: video
 payload: 
  title: "Link name"
  src: "https://www.youtube.com/watch?v=f3EbDbm8XqY"
```

---

<div class="post-metadata">

**Author:** ![skjainmiah](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@skjainmiah](https://forum.rasa.com/u/skjainmiah)\
**Post date:** [March 31, 2020, 1:01pm UTC](https://forum.rasa.com/t/how-to-place-a-video-in-rasa-chatbot/26824/5 "2020-03-31T13:01:40Z")

</div>

where should I insert this code?

---

<div class="post-metadata">

**Author:** ![n2718281](https://avatars.discourse-cdn.com/v4/letter/n/4bbf92/32.png) [@n2718281](https://forum.rasa.com/u/n2718281)\
**Post date:** [March 31, 2020, 1:20pm UTC](https://forum.rasa.com/t/how-to-place-a-video-in-rasa-chatbot/26824/6 "2020-03-31T13:20:03Z")

</div>

In the responses part of domain.yml (if I understood correctly what you wanted to do)

---

<div class="post-metadata">

**Author:** ![skjainmiah](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@skjainmiah](https://forum.rasa.com/u/skjainmiah)\
**Post date:** [March 31, 2020, 1:25pm UTC](https://forum.rasa.com/t/how-to-place-a-video-in-rasa-chatbot/26824/7 "2020-03-31T13:25:25Z")

</div>

when I placed code:

```
utter_video:
    attachment:
      type: video
      payload:
        title: "Link name"
        src: "https://www.youtube.com/watch?v=f3EbDbm8XqY"

```

I got this error:

```
FutureWarning: Templates should not be strings anymore. Utterance template 'utter_features' should contain either a '- text: ' or a '- custom: ' attribute to be a proper template.
  utter_templates = cls.collect_templates(data.get("responses", {}))
```

---

<div class="post-metadata">

**Author:** ![n2718281](https://avatars.discourse-cdn.com/v4/letter/n/4bbf92/32.png) [@n2718281](https://forum.rasa.com/u/n2718281)\
**Post date:** [March 31, 2020, 1:27pm UTC](https://forum.rasa.com/t/how-to-place-a-video-in-rasa-chatbot/26824/8 "2020-03-31T13:27:51Z")

</div>

You need to add that just before attachment if I remember correctly:

```
- custom:
```
