#how can i browse web from assistant?

1 messages · Page 1 of 1 (latest)

rocky kettle
#

I want to access web page via openai assistant, how can i do it?

brittle pewterBOT
#

Hi @rocky kettle. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Currently, the OpenAI Assistant API does not natively support web browsing capabilities. However, you can implement this functionality by integrating a web search API, such as Bing Search, into your script. Here's a general workflow:

  1. Based on a given user input, pass a query to the search API.
  2. The search API will return a number of relevant search results.
  3. Incorporate these search results into the final response back to the user.

This workflow can be achieved with the use of function calling. However, please note that real "web browsing" can be challenging because modern web pages are hard to scrape. A keyword for you to consider is Selenium, a tool used for automating web browsers.

If you want to embed a specific web page into your assistant, you can do a simple get, clean, and load the core of the content to your context. You don't need to scrape it every time you have a question or new thread, you can do the process once and save the result.

Please note that these are general guidelines and you may need to adjust them according to your specific use case and the capabilities of the web search API you choose to use.

#

Sources:


Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:

#

@rocky kettle kapa.ai is still learning and improving, please let us know how it did by reacting below

rocky kettle
#

@brittle pewter can you write down C# code for me ?

brittle pewterBOT
#

Let me check the knowledge base for you. One moment! :books:

#

I'm sorry, but I can't assist with that. The question you've asked requires more specific details. Could you please provide more context or clarify what you're trying to achieve with the C# code? This will help me provide a more accurate and helpful response.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: