Sea Breeze Gemini URL Context Chatbot (SeaGem)

Last updated on
((( spellific )))
Practice spelling while playing a fun word game!
Click here to play
Speech Recognition Anywhere
  • Type emails with your voice
  • Write documents with your voice
  • Control the Internet with your voice
  • Chrome Extension
Reconocimiento de voz en cualquier lugar
  • Escribe correos electrónicos con tu voz
  • Escribe documentos con tu voz
  • Controla la Internet con tu voz
  • Extensión de Chrome
Spracherkennung Allerorts
  • Geben Sie E-Mails mit Ihrer Stimme ein
  • Schreiben Sie Dokumente mit Ihrer Stimme
  • Steuern Sie das Internet mit Ihrer Stimme
  • Chrome-Erweiterung
Reconnaissance de la parole
  • Tapez des e-mails avec votre voix
  • Écrivez des documents avec votre voix
  • Contrôlez l'Inernet avec votre voix
  • Extension Chrome
Riconoscimento vocale ovunque
  • Digita e-mail con la tua voce
  • Scrivi documenti con la tua voce
  • Controlla Internet con la tua voce
  • Estensione Chrome
どこでも
音声認識
  • あなたの声で文書を書く
  • あなたの声でメールを入力してください
  • 音声でインターネットをコントロール
  • Chrome拡張機能
语音识别
无处不在
  • 用你的声音写文件
  • 用您的声音输入电子邮件
  • 用你的声音控制互联网
  • Chrome 扩展程序
語音識別
無處不在
  • 用你的聲音寫文件
  • 用您的聲音輸入電子郵件
  • 用你的聲音控制互聯網
  • Chrome 擴展程序
Subscribe to Internet Tips and Tools Feed

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

  • AI Chatbot using Gemini Models.
  • Free Tiers and Paid Tiers from Gemini. See Gemini Pricing.
  • Uses only JavaScript and PHP.
  • CSS Styles can be edited in seagem.js
  • Chat History

Download

$19.99 USD. Buy Now

How To Use

  1. Extract the two files from seagem.zip. (seagem.js, seagem.php)
  2. Get Your Gemini API Key:
    1. Go to: https://aistudio.google.com/
    2. After signing in look for a 🔑 key icon on the left side menu. You may need to scroll down. Hover mouse over 🔑 key icon to see "Get API key" tool tip. Click on 🔑
    3. Click on "Create API Key".
    4. Under "Choose an imported project" select "Create Project".
    5. Name it something like: "Gemini URL Context Chatbot".
    6. Click on "Create key".
    7. Click on "Copy key".
    8. Paste your API key in $apiKey variable in seagem.php.
    9. If you set up billing at https://aistudio.google.com/ then you can "Enable logging" on your project to see history.
    10. seagem.php also includes logging to a text file on your server so you can see history.
  3. Paste api key in $apiKey variable in seagem.php.
  4. Edit the $urls array in seagem.php with the URLs that you want the chatbot to use for the responses.
  5. Edit $log_file name and change it to something secret in seagem.php.
  6. Edit the variable privacy_policy_link at the top of seagem.js with a link to your website's privacy policy.
  7. Upload seagem.js and seagem.php to your websites.
  8. Put the following just below the tag in your html file:

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:

  • The tool can process up to 20 URLs per request.
  • The maximum size for content retrieved from a single URL is 34MB.
  • The URLs must be publicly accessible on the web.
  • The model will only retrieve content from the URLs you provide, not any content from nested links.
  • URL Context is only available in the Gemini API, not through Gemini Enterprise Agent Platform.

Supported content types from the URL(s):

  • Text (text/html, application/json, text/plain, text/xml, text/css, text/javascript , text/csv, text/rtf)
  • Image (image/png, image/jpeg, image/bmp, image/webp)
  • PDF (application/pdf)

Unsupported content types:

  • Paywalled content
  • YouTube videos
  • Google workspace files like Google docs or spreadsheets
  • Video and audio files

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:

ModelCategoryRPM TPMRPD
Gemini 3.5 FlashText-out models2 / 569 / 250K16 / 20
Gemini 3 FlashText-out models1 / 538 / 250K1 / 20
Gemini 3.1 Flash LiteText-out models3 / 15105 / 250K30 / 500
Gemini 2.5 ProText-out models0 / 00 / 00 / 0
Gemini 3.1 ProText-out models0 / 00 / 00 / 0

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)

What is the price?

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.

What are the requirements?

This script requires that your server has PHP version 5.6 or later. You will need a basic knowledge of JavaScript and PHP.

What if the chat history log file did not have new entries?

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.
In Apple Safari: Hold down ⇧ Shift and click the Reload ⭮ toolbar button.
In Chrome and Firefox for Mac: Hold down both ⌘ Cmd + ⇧ Shift and press R.

Can I limit the number of requests a single user can make?

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
$max_rpd = 50; // Maximum requests per day per user; 0 = Unlimited

Does the Chatbot work in different languages?

Yes. Gemini's URL Context API will automatically translate the information into the language that the user asks the question in.

How do I download the widget files again?

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
Created on June 19, 2026

((( spellific )))
Practice spelling while playing a fun word game!
Click here to play
Speech Recognition Anywhere
  • Type emails with your voice
  • Write documents with your voice
  • Control the Internet with your voice
  • Chrome Extension
Reconocimiento de voz en cualquier lugar
  • Escribe correos electrónicos con tu voz
  • Escribe documentos con tu voz
  • Controla la Internet con tu voz
  • Extensión de Chrome
Spracherkennung Allerorts
  • Geben Sie E-Mails mit Ihrer Stimme ein
  • Schreiben Sie Dokumente mit Ihrer Stimme
  • Steuern Sie das Internet mit Ihrer Stimme
  • Chrome-Erweiterung
Reconnaissance de la parole
  • Tapez des e-mails avec votre voix
  • Écrivez des documents avec votre voix
  • Contrôlez l'Inernet avec votre voix
  • Extension Chrome
Riconoscimento vocale ovunque
  • Digita e-mail con la tua voce
  • Scrivi documenti con la tua voce
  • Controlla Internet con la tua voce
  • Estensione Chrome
どこでも
音声認識
  • あなたの声で文書を書く
  • あなたの声でメールを入力してください
  • 音声でインターネットをコントロール
  • Chrome拡張機能
语音识别
无处不在
  • 用你的声音写文件
  • 用您的声音输入电子邮件
  • 用你的声音控制互联网
  • Chrome 扩展程序
語音識別
無處不在
  • 用你的聲音寫文件
  • 用您的聲音輸入電子郵件
  • 用你的聲音控制互聯網
  • Chrome 擴展程序
Back to www.seabreezecomputers.com
Subscribe to Internet Tips and Tools Feed        

User Comments

There are 0 comments.

Displaying first 50 comments.