workflows.fit
Back to n8n workflows
n8n templateFreeBy Davide Boizza

Build an OpenAI assistant with Google Drive integration

Workflow Overview This workflow automates the creation and management of a custom OpenAI Assistant for a travel agency ("Travel with us"), leveraging Google Drive for document storage. --- How It Works 1. Create the O...

Data & StorageAILangchainCore NodesManual TriggerGoogle DriveChat TriggerMemory Buffer Window
Loading interactive preview...

Template notes

Workflow Overview This workflow automates the creation and management of a custom OpenAI Assistant for a travel agency ("Travel with us"), leveraging Google Drive for document storage.

---

How It Works

1. Create the OpenAI Assistant - Node: OpenAI - Action: Creates a custom assistant named "Travel with us" Assistant using the gpt-4o-mini model. - Instructions: - Respond only using the provided document (e.g., agency-specific info). - Stay friendly, brief, and focused on travel-related queries. - Ignore irrelevant questions politely. - Credentials: Requires OpenAI API key.

2. Upload Agency Document - Google Drive Node: - Action: Downloads a Google Doc as a PDF. - OpenAI2 Node: - Action: Uploads the PDF to OpenAI with purpose: "assistants". - Output: Generates a fileid.

3. Update the Assistant with the Document - OpenAI Node: - Action: Updates the assistant to include the uploaded file.

4. Chat Interaction - Chat Trigger: - Activates when a message is received ("When chat message received"). - OpenAI Assistant Node: - Action: Uses the updated assistant to respond to user queries. - Memory: Window Buffer Memory retains chat context for coherent conversations.

---