# Custom Connector without using APIs

**URL:** <https://forum.rasa.com/t/custom-connector-without-using-apis/39851>\
**Category:** Rasa Open Source\
**Created:** [February 4, 2021, 3:35pm UTC](https://forum.rasa.com/t/custom-connector-without-using-apis/39851 "2021-02-04T15:35:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![adarshpansari](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarshpansari](https://forum.rasa.com/u/adarshpansari)\
**Post date:** [February 4, 2021, 3:35pm UTC](https://forum.rasa.com/t/custom-connector-without-using-apis/39851/1 "2021-02-04T15:35:45Z")

</div>

Hi Everyone, I am trying to write a connector to connect my rasa bot. I got the input messages and now want to pass it to my bot. I am using this piece of code.

```auto
out = CollectingOutputChannel()
UserMessage(text, out)
responses = [m["text"] for m in out.messages]
print(responses) 

```

where **text** is the **input message**. Now the issue is I am not getting any responses its giving []. Can someone help me with it.

---

<div class="post-metadata">

**Author:** ![mloubser](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mloubser/32/13021_2.png) [@mloubser](https://forum.rasa.com/u/mloubser)\
**Post date:** [February 5, 2021, 8:35am UTC](https://forum.rasa.com/t/custom-connector-without-using-apis/39851/2 "2021-02-05T08:35:24Z")

</div>

Hi @adarshpansari , welcome to the Rasa Forum! Can you provide more context to your code snippet - what does your custom connector class & methods look like? If you post it between lines of triple backticks, you can format it as code for easy readability (I’ve edited your post to be like that too)

```

your code here

```

---

<div class="post-metadata">

**Author:** ![adarshpansari](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarshpansari](https://forum.rasa.com/u/adarshpansari)\
**Post date:** [February 5, 2021, 9:36am UTC](https://forum.rasa.com/t/custom-connector-without-using-apis/39851/3 "2021-02-05T09:36:17Z")

</div>

Hi @mloubser, So I havn’t thought much as to implement classes or function the snippet is all that I am currently using. I went through the custom\_connector that is provided. It seems to be using APIs but I dont want to make API calls. I am able to get the message now I just want to pass it to my rasa bot.

---

<div class="post-metadata">

**Author:** ![mloubser](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mloubser/32/13021_2.png) [@mloubser](https://forum.rasa.com/u/mloubser)\
**Post date:** [February 5, 2021, 12:12pm UTC](https://forum.rasa.com/t/custom-connector-without-using-apis/39851/4 "2021-02-05T12:12:06Z")

</div>

What channel are the messages supposed to appear on without using an API? How do messages come in?

---

<div class="post-metadata">

**Author:** ![adarshpansari](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarshpansari](https://forum.rasa.com/u/adarshpansari)\
**Post date:** [February 5, 2021, 12:32pm UTC](https://forum.rasa.com/t/custom-connector-without-using-apis/39851/5 "2021-02-05T12:32:01Z")

</div>

I get the messages from my website which is connected to my lambda function so in the event I get the user messages, these are actually the user queries the users input in the FAQ section so now the bot has got the responses for those queries. I just want to pass those messages to the bot.

---

<div class="post-metadata">

**Author:** ![mloubser](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mloubser/32/13021_2.png) [@mloubser](https://forum.rasa.com/u/mloubser)\
**Post date:** [March 23, 2021, 4:12pm UTC](https://forum.rasa.com/t/custom-connector-without-using-apis/39851/6 "2021-03-23T16:12:47Z")

</div>

Sorry I didn’t notice your message till now - What kind of lambda function is this? How does the platform work? Did you already find a solution to your problem?
