LINE BOT - Google Sheets File Lookup with AI Agent

Go to Workflow
0 views
Built by Jaruphat J. Jaruphat J.
Created on June 13, 2026

Description

This workflow integrates LINE BOT, AI Agent (GPT), Google Sheets, and Google Drive to enable users to search for file URLs using natural language. The AI Agent extracts the filename from the message, searches for the file in Google Sheets, and returns the corresponding Google Drive URL via LINE BOT.

Supports natural language queries
(e.g., "Find file 1.pdf for me")
AI-powered filename extraction
Google Sheets Lookup for file URLs
Auto-response via LINE BOT

How to Use This Template

1. Download & Import
Copy and save the Template Code as a .json file.
Go to n8n Editor → Click Import → Upload the file.

2. Update Required Fields
Replace YOUR_GOOGLE_SHEET_ID with your actual Google Sheet ID.
Replace YOUR_LINE_ACCESS_TOKEN with your LINE BOT Channel Access Token.

3. Activate & Test
Click Execute Workflow to test manually.
Set Webhook URL in LINE Developer Console.

Features of This Template
Supports Natural Language Queries (e.g., “Find file 1.pdf for me”)
AI-powered filename extraction using OpenAI (GPT-4/3.5)
Real-time file lookup in Google Sheets
Automatic LINE BOT Response
Fully Automated Workflow

Nodes Used (4)

AI Agent
@n8n/n8n-nodes-langchain.agent
Google Sheets
n8n-nodes-base.googleSheets
HTTP Request
n8n-nodes-base.httpRequest
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi