# Answer procurement policy questions with Google Drive, Gemini, and webhooks

> Quick overview This workflow exposes a webhook-based helpbot that answers employee questions using a policy PDF from Google Drive, generates a structured response with Google Gemini, and escalates low-confidence answers by creating a support ticket via an HTTP request. How it works 1. Receives an employee question via a POST webhook request. 2. Fetches a policy PDF from a Google Drive download URL and extracts its text content. 3. Analyzes the document text to detect the likely policy domain and document structure, then builds a system prompt that instructs Google Gemini to answer using only the document. 4. Sends the prompt and the user’s question to Google Gemini and parses the model’s JSON response, including a confidence score. 5. If the confidence is 0.70 or higher, returns the policy-based answer (plus section, next action, and summary) as the webhook response. 6. If the confidence is below 0.70 (or parsing fails), creates a support ticket by POSTing the question and the bot’s be

- **Domain**: `n8n-workflow-19613.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/19613
- Page (HTML): https://agenstry.com/agents/n8n-workflow-19613.n8n.io
- Documentation: https://n8n.io/workflows/19613
