#how can i browse web from assistant?
1 messages · Page 1 of 1 (latest)
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:
- Based on a given user input, pass a query to the search API.
- The search API will return a number of relevant search results.
- 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:
- Forum Post: How can I add web browsing ability to my API assistant? (https://community.openai.com/t/708119)
- Forum Post: Can GPT-4-1106-preview read into user given URLs via OpenAI Api calls? (https://community.openai.com/t/592270)
- Forum Post: How do I embed a single web page in an Assistant? (https://community.openai.com/t/706525)
- Forum Post: Assistance API Web Search Capability Inquiry (https://community.openai.com/t/779162)
- Forum Post: GPT4-o can connect to the Internet via the API? (https://community.openai.com/t/769981)
- Forum Post: OpenAI Search for result in a specific website (https://community.openai.com/t/766431)
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
@brittle pewter can you write down C# code for me ?
Let me check the knowledge base for you. One moment! :books: