diff --git a/surfsense_backend/app/agents/new_chat/tools/google_drive/create_file.py b/surfsense_backend/app/agents/new_chat/tools/google_drive/create_file.py index 6e0bfd28a..9371b1827 100644 --- a/surfsense_backend/app/agents/new_chat/tools/google_drive/create_file.py +++ b/surfsense_backend/app/agents/new_chat/tools/google_drive/create_file.py @@ -33,11 +33,12 @@ def create_create_google_drive_file_tool( Use this tool when the user explicitly asks to create a new document or spreadsheet in Google Drive. The user MUST specify a topic before - you call this tool. If the request is vague, ask what the file should - contain. Never call this tool without a clear topic from the user. + you call this tool. If the request does not contain a topic (e.g. + "create a drive doc" or "make a Google Sheet"), ask what the file + should be about. Never call this tool without a clear topic from the user. Args: - name: The file name (without extension). Infer from the user's request. + name: The file name (without extension). file_type: Either "google_doc" or "google_sheet". content: Optional initial content. Generate from the user's topic. For google_doc, provide markdown text. For google_sheet, provide CSV-formatted text.