|
This chatbot widget is a lightweight AI chatbot for websites that allows users to ask questions about your product(s) or service(s). It uses Gemini's URL Context API. It uses only two files on your website. A JavaScript file (seagem.js) and a PHP file (seagem.php). Gemini's URL context API allows users to make an AI chatbot that gets information directly from a business website such as website HTML files or PDF files. The downloadable widget on this website allows users to quickly set up a Chatbot on their website that interacts with the Gemini API and retrieves responses directly from the URL(s) provided. You may sign up for a free tier or a paid tier of Gemini at https://aistudio.google.com/ . Demonstration For a demo click on the "Support Chatbot" icon at the lower right corner of this website. Features
Download $19.99 USD. Buy NowHow To Use
Note: You may want to add a chatbot section to your privacy policy explaining how your website and Google may collect and use ip address and user input for security, training and product improvement. (This is not legal advice since I am not an expert on legal matters.) Limitations The most up to date limitations of the Gemini URL Context API can be found at https://ai.google.dev/gemini-api/docs/url-context. The chatbot will find the answers to user questions from the URL(s) that you provide in seagem.php. So make sure that you provide URLs that contain as much information about your product(s) and service(s) as possible. You may want to provide a URL to a FAQ (Frequently Asked Questions) page. Of course, it can be difficult to think of every question that users might ask, so after users have chatted with the chatbot you can look at the chat history log text file. If the chatbot couldn't find good answers to some questions then you will want to add those answers to your website URL(s). At the time of writing, the Gemini URL Context API had the following limitations:
Supported content types from the URL(s):
Unsupported content types:
Free Tier The free tier may work fine for small websites with just a few users per day asking questions. However, it seems that Google throttles resources especially for free tier users. So requests may take some time on the free tier. seagem.php defaults to using the "gemini-3.1-flash-lite" because it is relatively fast compared to other models. Also, at the time of this writing it has a rate limit of 500 Requests Per Day (RPD). The other models have a rate limit of 20 RPD. Data Privacy: On the free tier, Google may use your prompts and responses to review and improve its products. The Gemini response may sometimes respond with errors such as: "This model is currently experiencing high demand. Spikes in demand are usually temporary. Please try again later." There would probably be less demand on the paid tiers and using models like "gemini-2.5-pro". Rate Limits Google's website at https://ai.google.dev/gemini-api/docs/rate-limits talks about rate limits but doesn't show the rate limits until you start a project. When you create a project you can click on View your active rate limits in AI Studio. At the time of this writing, the following rate limits were on the free tier:
The above data was from a day of testing. The model that performed the quickest was "gemini-3.1-flash-lite". It also did relatively well at answering questions correctly. The Requests Per Minute (RPM) went up to 3 per minute with just one user at a time asking questions. The total Requests Per Day (RPD) was at 30 for the "gemini-3.1-flash-lite" with a maximum allowed of 500 per day for the free tier. At the time of this writing, Paid Tier 1 goes up to a limit of 3.99K RPM and 149.5K RPD for the "gemini-3.1-flash-lite" model and a limit of 995 RPM and 1.75M RPD for the "gemini-3.5-flash" model. FAQ (Frequently Asked Questions)
You can download the script on this page for a low, one-time payment of $19.99 USD. If you have a small website with just a few visitors using the chatbot then you might be able to use the
free tier at https://aistudio.google.com/ for a while.
If your website visitor count starts to grow substantially then you may need to use a paid tier at
https://aistudio.google.com/.
See Gemini Pricing.
This script requires that your server has PHP version 5.6 or later. You will need a basic knowledge of
JavaScript and PHP.
If the chat history log file does not have new entries then your browser might be caching an old version of
the file instead of retrieving the new one. You may need to do a hard refresh of the page.
In most Windows and Linux browsers: Hold down Ctrl and press F5. Yes. There are built-in variables that you can edit to limit the requests per minute and the
requests per day that each user can make. Edit the following variables in seagem.php:
$max_rpm = 3; // Maximum requests per minute per user; 0 = Unlimited Yes. Gemini's URL Context API will automatically translate the information into the language
that the user asks the question in.
If you have paid for the widget and you need to download it again then you can go to the
orders page and sign in with the email address you used to make the purchase with.
Go to My Orders Page.
Version History Version 1.0 - 6/19/2026 - Sea Breeze Gemini URL Context Chatbot (SeaGem) Created. Last updated on June 22, 2026 |
|
|
User Comments
|