# Want to get the answer from internet or from chatgpt , if answer is not avaialble in provided knowledge bases

**URL:** https://community.sendbird.com/t/want-to-get-the-answer-from-internet-or-from-chatgpt-if-answer-is-not-avaialble-in-provided-knowledge-bases/9387
**Category:** Sendbird AI Agent
**Created:** [April 19, 2024, 6:34am UTC](https://community.sendbird.com/t/want-to-get-the-answer-from-internet-or-from-chatgpt-if-answer-is-not-avaialble-in-provided-knowledge-bases/9387 "2024-04-19T06:34:04Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Kunal\_chander](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/kunal_chander/32/4582_2.png) [@Kunal\_chander](https://community.sendbird.com/u/Kunal_chander)
#### Post date: [April 19, 2024, 6:34am UTC](https://community.sendbird.com/t/want-to-get-the-answer-from-internet-or-from-chatgpt-if-answer-is-not-avaialble-in-provided-knowledge-bases/9387/1 "2024-04-19T06:34:04Z")

</div>

I have created the send bird ai chat bot , but it only able to answer from provided knowledge bases. I want it to find the answers from internet or from chatgpt ( with some restrictons ) if answers are not available in knowledge bases . Currently i am using free trial

---

<div class="post-metadata">

### Author: ![Won\_Suh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/won_suh/32/5094_2.png) [@Won\_Suh](https://community.sendbird.com/u/Won_Suh)
#### Post date: [April 22, 2024, 2:12am UTC](https://community.sendbird.com/t/want-to-get-the-answer-from-internet-or-from-chatgpt-if-answer-is-not-avaialble-in-provided-knowledge-bases/9387/2 "2024-04-22T02:12:25Z")

</div>

Hi Kunal,

Besides using the knowledge base, you may use Function Calls to call to external APIs and respond back with grounded answers.

Here is the links to the function call feature: [https://sendbird.com/docs/ai-chatbot/guide/v1/sendbird-dashboard/function-calls](https://sendbird.com/docs/ai-chatbot/guide/v1/sendbird-dashboard/function-calls).

If you want more background info: [How to master prompt engineering, function calling, and the use of GPT | Sendbird](https://sendbird.com/developer/tutorials/ai-chatbot-prompt-engineering-function-calling)

You may have to craft the prompt carefully as this will handle the intent and which function call to trigger.

A notable endpoint to request internet data upon querying is SerpAPI. [https://serpapi.com/search-api](https://serpapi.com/search-api) (Paid).

Upon querying the internet using such endpoint, you may need to send additional filter parameters.

Feel free to explore other external services and connect them with your Ai Chatbot.

Have a great time with Sendbird’s AI Chatbot!

---

<div class="post-metadata">

### Author: ![Kunal\_chander](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/kunal_chander/32/4582_2.png) [@Kunal\_chander](https://community.sendbird.com/u/Kunal_chander)
#### Post date: [April 22, 2024, 6:08am UTC](https://community.sendbird.com/t/want-to-get-the-answer-from-internet-or-from-chatgpt-if-answer-is-not-avaialble-in-provided-knowledge-bases/9387/4 "2024-04-22T06:08:39Z")

</div>

Thank you for your response. To clarify, does this mean there is no built-in feature that meets my needs? Will I need to integrate external APIs and incur additional costs beyond your subscription?

---

<div class="post-metadata">

### Author: ![Won\_Suh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/won_suh/32/5094_2.png) [@Won\_Suh](https://community.sendbird.com/u/Won_Suh)
#### Post date: [April 22, 2024, 6:27am UTC](https://community.sendbird.com/t/want-to-get-the-answer-from-internet-or-from-chatgpt-if-answer-is-not-avaialble-in-provided-knowledge-bases/9387/5 "2024-04-22T06:27:46Z")

</div>

Hi Kunal,

As of now, the AI Chatbot does not have a direct way to “search” or parse the web beside the URL provided as a Knowledge Base.

Integrating via Function Calls is recommended. (edit. Supported only with OpenAi models)

Any external services outside Sendbird will incur charges based on usage.

Thanks
