Skip to content

Add web search toggle to bot editors and system prompt injection#19

Merged
tpaulshippy merged 3 commits into
mainfrom
feature/web-search-bot-toggle
May 26, 2026
Merged

Add web search toggle to bot editors and system prompt injection#19
tpaulshippy merged 3 commits into
mainfrom
feature/web-search-bot-toggle

Conversation

@tpaulshippy
Copy link
Copy Markdown
Owner

Summary

  • Add Enable Web Search toggle to advanced bot editor (was only available in simple editor)
  • When enabled in simple editor, append web search instruction to the generated system prompt so the LLM knows to use the web search tool
  • Fix missing enable_web_search in useEffect dependency array in simple editor

- Add Enable Web Search toggle to advanced editor (was only in simple editor)
- Append web search instruction to system prompt when enabled in simple editor
- Fix useEffect dependency on enable_web_search in simple editor
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds UI support for toggling web search on bots in both editors, and ensures the simple editor’s generated system prompt reflects that setting so the LLM is instructed to use the web-search capability.

Changes:

  • Fixes the simple editor’s system-prompt regeneration useEffect dependencies to include enable_web_search.
  • Adds an “Enable Web Search” toggle to the advanced bot editor.
  • Updates system prompt generation to append a web search instruction when enable_web_search is enabled.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
front/app/parent/botSimple.tsx Adds bot.enable_web_search to the system prompt regeneration dependency array.
front/app/parent/botAdvanced.tsx Adds a new “Enable Web Search” switch and related styling/theme usage.
front/api/botTemplates.ts Appends a web-search instruction into the generated system prompt when enabled.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread front/app/parent/botAdvanced.tsx
Comment thread front/api/botTemplates.ts
@tpaulshippy tpaulshippy merged commit 1d40b4b into main May 26, 2026
3 checks passed
@tpaulshippy tpaulshippy deleted the feature/web-search-bot-toggle branch May 26, 2026 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants