LLMS Central - The Robots.txt for AI
AI Models

Introducing mid-conversation instructions in the Gemini API

Blog.google••2 min read
Share:
Introducing mid-conversation instructions in the Gemini API

Original Article Summary

Update system instructions and tools mid-conversation while preserving your prompt cache.

Read full article at Blog.google

✨Our Analysis

Google's Gemini API introduces mid‑conversation instructions, allowing developers to update system instructions and tool calls on the fly while preserving the prompt cache. This change means that bots powered by Gemini can adapt their behavior mid‑session without re‑initialising the model, leading to more dynamic interactions and potentially higher request volumes as sites implement richer, context‑aware features. For website owners, the ability to modify a bot’s instructions mid‑conversation translates into more personalized user experiences but also creates new tracking challenges. Since the model retains its cache, repeated calls from the same session may no longer appear as distinct requests, making it harder to differentiate genuine user traffic from automated bot activity. Additionally, the dynamic instruction updates could cause bots to serve content that conflicts with a site’s existing llms.txt policies, especially if the bot switches tools or topics mid‑session. **Actionable tips:** 1. **Implement session‑level fingerprinting** in your analytics stack to tag each conversation’s start, then monitor for instruction‑update signals (e.g., changes in request headers) to flag potential bot behavior. 2. **Update your llms.txt** to include a `mid_conversation_update` directive, specifying whether your site permits or blocks bots that alter system instructions after the initial request. 3. **Set rate‑limit thresholds** based on cached‑session lengths; if a single IP maintains unusually long cached sessions, trigger a verification step or CAPTCHA to ensure human interaction.

Related Topics

Gemini

Track AI Bots on Your Website

See which AI crawlers like ChatGPT, Claude, and Gemini are visiting your site. Get real-time analytics and actionable insights.

Start Tracking Free →