Skip to content

SerpApi (Google Search) node#

SerpAPI node ช่วยให้ agent ใน workflow ของคุณสามารถเรียกใช้ Google Search API ได้

ในหน้านี้จะมี parameter ของ node SerpAPI และลิงก์ไปยัง resource อื่นๆ

Credentials

ดูข้อมูลการตั้งค่า authentication สำหรับ node นี้ ที่นี่

Parameter resolution in sub-nodes (การประมวลผล Parameter ใน sub-nodes)

Sub-nodes มีพฤติกรรมแตกต่างจาก node อื่นๆ เมื่อประมวลผลหลายรายการโดยใช้ expression

Node ส่วนใหญ่ รวมถึง root node จะรับ input กี่รายการก็ได้ ประมวลผลรายการเหล่านี้ และส่ง output ออกมา คุณสามารถใช้ expression เพื่ออ้างอิงถึง input item และ node จะประมวลผล expression สำหรับแต่ละ item ตามลำดับ ตัวอย่างเช่น หากมี input เป็นค่า name ห้ารายการ expression {{ $json.name }} จะถูกประมวลผลเป็นแต่ละชื่อตามลำดับ

ใน sub-nodes expression จะถูกประมวลผลเป็น item แรกเสมอ ตัวอย่างเช่น หากมี input เป็นค่า name ห้ารายการ expression {{ $json.name }} จะถูกประมวลผลเป็นชื่อแรกเสมอ

Node options#

  • Country: กรอกรหัสประเทศที่ต้องการใช้งาน ดูรหัสประเทศที่รองรับได้ที่ Google GL Parameter: Supported Google Countries
  • Device: เลือกอุปกรณ์ที่ต้องการใช้สำหรับค้นหา
  • Explicit Array: เลือกว่าจะบังคับให้ SerpApi ดึงผลลัพธ์ Google ใหม่ทุกครั้ง (เปิด) หรือใช้ cache (ปิด)
  • Google Domain: กรอก Google Domain ที่ต้องการใช้งาน ดู domain ที่รองรับได้ที่ Supported Google Domains
  • Language: กรอกรหัสภาษาที่ต้องการใช้งาน ดูรหัสภาษาที่รองรับได้ที่ Google HL Parameter: Supported Google Languages

Templates and examples#

AI agent chat

by n8n Team

View template details
✨🤖Automate Multi-Platform Social Media Content Creation with AI

by Joseph LePage

View template details
AI chatbot that can search the web

by n8n Team

View template details
Browse SerpApi (Google Search) integration templates, or search all templates

ดูข้อมูลเพิ่มเติมเกี่ยวกับบริการนี้ได้ที่ Serp's documentation หรือดู LangChain's documentation on their Serp integration

ดูเอกสาร Advanced AI ของ n8n

AI glossary#

  • completion: Completions are the responses generated by a model like GPT.
  • hallucinations: Hallucination in AI is when an LLM (large language model) mistakenly perceives patterns or objects that don't exist.
  • vector database: A vector database stores mathematical representations of information. Use with embeddings and retrievers to create a database that your AI can access when answering questions.
  • vector store: A vector store, or vector database, stores mathematical representations of information. Use with embeddings and retrievers to create a database that your AI can access when answering questions.