# Getting error in implementing Custom channel in rasa core latest version

**URL:** <https://forum.rasa.com/t/getting-error-in-implementing-custom-channel-in-rasa-core-latest-version/1079>\
**Category:** Rasa Open Source\
**Created:** [September 13, 2018, 5:32am UTC](https://forum.rasa.com/t/getting-error-in-implementing-custom-channel-in-rasa-core-latest-version/1079 "2018-09-13T05:32:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![r4sn4](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/r4sn4/32/279_2.png) [@r4sn4](https://forum.rasa.com/u/r4sn4)\
**Post date:** [September 13, 2018, 5:32am UTC](https://forum.rasa.com/t/getting-error-in-implementing-custom-channel-in-rasa-core-latest-version/1079/1 "2018-09-13T05:32:54Z")

</div>

Hi

I want to create custom channel using latest rasa core. Documentation is not clear.

How do I use RestInput class to create custom channel?

```
from rasa_core.channels import RestInput

interpreter = RasaNLUInterpreter("model/nlu")

agent = Agent.load("model/dialogue", interpreter= interpreter)

channel = RestInput()

agent.handle_channels(list(channel) , http_port = 5001)

```

I am doing this way and getting error - RestInput’ object is not iterable How do I pass channel?

handle\_channel function is not available. Instead handle\_channels is available which requires list of channel to be passed.

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [September 14, 2018, 3:54pm UTC](https://forum.rasa.com/t/getting-error-in-implementing-custom-channel-in-rasa-core-latest-version/1079/3 "2018-09-14T15:54:43Z")

</div>

Take a look at this [https://github.com/RasaHQ/rasa\_core/blob/master/rasa\_core/run.py#L196](https://github.com/RasaHQ/rasa_core/blob/master/rasa_core/run.py#L196) , also any reason you’re not usign the run script?
