# Function call not working with AI chatbot

**URL:** <https://community.sendbird.com/t/function-call-not-working-with-ai-chatbot/10174>\
**Category:** Miscellaneous\
**Created:** [October 13, 2024, 8:07pm UTC](https://community.sendbird.com/t/function-call-not-working-with-ai-chatbot/10174 "2024-10-13T20:07:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Megha](https://avatars.discourse-cdn.com/v4/letter/m/85e7bf/32.png) [@Megha](https://community.sendbird.com/u/Megha)\
**Post date:** [October 13, 2024, 8:07pm UTC](https://community.sendbird.com/t/function-call-not-working-with-ai-chatbot/10174/1 "2024-10-13T20:07:59Z")

</div>

I am trying out sendbird for its Chatbot AI. One of my use cases is to trigger a function call on AI detection, however, as soon as I enable the function call the whole AI chatbot stops working (for any query). It returns the following error:

> Unexpected error has occurred. Try again and contact customer support if the issue persists.

I also checked the bot log and didn’t find anything helpful. Note that I am currently trying out the product so still on free tier.
