# Assistant returning "undefined" as response

**URL:** <https://community.thunkable.com/t/assistant-returning-undefined-as-response/570729>\
**Category:** Questions about Thunkable X\
**Tags:** dialog, assistant\
**Created:** [May 16, 2020, 2:07pm UTC](https://community.thunkable.com/t/assistant-returning-undefined-as-response/570729 "2020-05-16T14:07:03Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tanmay\_Kulkarni\_15](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tanmay_kulkarni_15/32/69214_2.png) [@Tanmay\_Kulkarni\_15](https://community.thunkable.com/u/Tanmay_Kulkarni_15)\
**Post date:** [May 16, 2020, 2:07pm UTC](https://community.thunkable.com/t/assistant-returning-undefined-as-response/570729/1 "2020-05-16T14:07:03Z")

</div>

I have done the setup of all the required paramters for dialogflow. When I try to send a query, it returns “undefined”. Also when I use the StartListening() function, it sends “undefined”

Please Help

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [May 16, 2020, 5:13pm UTC](https://community.thunkable.com/t/assistant-returning-undefined-as-response/570729/2 "2020-05-16T17:13:50Z")

</div>

Hi @Tanmay_Kulkarni_15, welcome to the Community.

Could you provide more information please? Screenshots of the blocks would be fantastic and if at all possible can you provide the API Endpoint, or at least a copy & paste of the response from a web browser.

---

<div class="post-metadata">

**Author:** ![Tanmay\_Kulkarni\_15](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tanmay_kulkarni_15/32/69214_2.png) [@Tanmay\_Kulkarni\_15](https://community.thunkable.com/u/Tanmay_Kulkarni_15)\
**Post date:** [May 17, 2020, 9:02am UTC](https://community.thunkable.com/t/assistant-returning-undefined-as-response/570729/3 "2020-05-17T09:02:08Z")

</div>

![Untitled](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/a/ea19f80bd66e1f449a144810ad07c9564197a887.png)

I have setup the api parameters properly, then what is the problem?

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [May 17, 2020, 11:05am UTC](https://community.thunkable.com/t/assistant-returning-undefined-as-response/570729/4 "2020-05-17T11:05:51Z")

</div>

Hi,

I’m not sure you quite understand the API blocks here. But don’t worry, check out this amazing guide by @simran on Web API’s. The videos go over lots of Web API blocks and examples.

https://www.youtube.com/embed/videoseries?list=PLB89L9PPGIry11IQq0dyVG_aK6kUMHP1F&wmode=transparent&rel=0&autohide=1&showinfo=1&enablejsapi=1

---

<div class="post-metadata">

**Author:** ![Tanmay\_Kulkarni\_15](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tanmay_kulkarni_15/32/69214_2.png) [@Tanmay\_Kulkarni\_15](https://community.thunkable.com/u/Tanmay_Kulkarni_15)\
**Post date:** [May 17, 2020, 2:06pm UTC](https://community.thunkable.com/t/assistant-returning-undefined-as-response/570729/5 "2020-05-17T14:06:49Z")

</div>

So, how to use this in DialogFlow

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [May 17, 2020, 2:29pm UTC](https://community.thunkable.com/t/assistant-returning-undefined-as-response/570729/6 "2020-05-17T14:29:40Z")

</div>

Hi @Tanmay_Kulkarni_15! 👋

Have you read through these docs?

[https://docs.thunkable.com/assistant](https://docs.thunkable.com/assistant)

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [May 17, 2020, 3:12pm UTC](https://community.thunkable.com/t/assistant-returning-undefined-as-response/570729/7 "2020-05-17T15:12:12Z")

</div>

Apologies @Tanmay_Kulkarni_15, I completely overlooked that you were asking about the Assistant component 🤦‍♂️

---

<div class="post-metadata">

**Author:** ![Tanmay\_Kulkarni\_15](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tanmay_kulkarni_15/32/69214_2.png) [@Tanmay\_Kulkarni\_15](https://community.thunkable.com/u/Tanmay_Kulkarni_15)\
**Post date:** [May 18, 2020, 2:31pm UTC](https://community.thunkable.com/t/assistant-returning-undefined-as-response/570729/8 "2020-05-18T14:31:27Z")

</div>

YES, I have

---

<div class="post-metadata">

**Author:** ![Tanmay\_Kulkarni\_15](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tanmay_kulkarni_15/32/69214_2.png) [@Tanmay\_Kulkarni\_15](https://community.thunkable.com/u/Tanmay_Kulkarni_15)\
**Post date:** [May 18, 2020, 2:32pm UTC](https://community.thunkable.com/t/assistant-returning-undefined-as-response/570729/9 "2020-05-18T14:32:23Z")

</div>

And I have also setup the client email, project id and others with reference to the docs

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [May 18, 2020, 2:38pm UTC](https://community.thunkable.com/t/assistant-returning-undefined-as-response/570729/10 "2020-05-18T14:38:11Z")

</div>

can you share a project link?

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:29am UTC](https://community.thunkable.com/t/assistant-returning-undefined-as-response/570729/12 "2024-11-08T11:29:09Z")

</div>


