Tools AI Agent node#
Tools Agent ใช้ tools และ APIs ภายนอกเพื่อดำเนินการและดึงข้อมูล มันสามารถเข้าใจความสามารถของ tools ต่างๆ และตัดสินใจว่าจะใช้ tool ใดขึ้นอยู่กับงาน Agent นี้ช่วยรวม LLMs เข้ากับบริการและฐานข้อมูลภายนอกต่างๆ
Agent นี้มีความสามารถที่เพิ่มขึ้นในการทำงานกับ tools และสามารถรับประกันรูปแบบ output ที่เป็นมาตรฐานได้
Tools Agent ใช้ interface Langchain's tool calling interface นี้อธิบาย tools ที่มีอยู่และ schemas ของมัน Agent ยังมีความสามารถในการแยกวิเคราะห์ output ที่ปรับปรุงแล้ว เนื่องจากมันส่ง parser ไปยัง model เป็น formatting tool
อ้างอิง AI Agent สำหรับข้อมูลเพิ่มเติมเกี่ยวกับ AI Agent node เอง
คุณสามารถใช้ agent นี้กับ Chat Trigger node ได้ เชื่อมต่อ memory sub-node เพื่อให้ผู้ใช้สามารถสนทนาต่อเนื่องด้วยคำถามหลายๆ ครั้งได้ Memory จะไม่คงอยู่ระหว่าง session
Agent นี้รองรับ chat models ต่อไปนี้:
- OpenAI Chat Model
- Groq Chat Model
- Mistral Cloud Chat Model
- Anthropic Chat Model
- Azure OpenAI Chat Model
The Tools Agent can use the following tools...
- Call n8n Workflow
- Code
- HTTP Request
- Action Network
- ActiveCampaign
- Affinity
- Agile CRM
- Airtable
- APITemplate.io
- Asana
- AWS Lambda
- AWS S3
- AWS SES
- AWS Textract
- AWS Transcribe
- Baserow
- Bubble
- Calculator
- ClickUp
- CoinGecko
- Compression
- Crypto
- DeepL
- DHL
- Discord
- Dropbox
- Elasticsearch
- ERPNext
- Facebook Graph API
- FileMaker
- Ghost
- Git
- GitHub
- GitLab
- Gmail
- Google Analytics
- Google BigQuery
- Google Calendar
- Google Chat
- Google Cloud Firestore
- Google Cloud Realtime Database
- Google Contacts
- Google Docs
- Google Drive
- Google Sheets
- Google Slides
- Google Tasks
- Google Translate
- Google Workspace Admin
- Gotify
- Grafana
- GraphQL
- Hacker News
- Home Assistant
- HubSpot
- Jenkins
- Jira Software
- JWT
- Kafka
- LDAP
- Line
- Mailcheck
- Mailgun
- Mattermost
- Mautic
- Medium
- Microsoft Excel 365
- Microsoft OneDrive
- Microsoft Outlook
- Microsoft SQL
- Microsoft Teams
- Microsoft To Do
- Monday.com
- MongoDB
- MQTT
- MySQL
- NASA
- Nextcloud
- NocoDB
- Notion
- Odoo
- OpenWeatherMap
- Pipedrive
- Postgres
- Pushover
- QuickBooks Online
- QuickChart
- RabbitMQ
- Redis
- RocketChat
- S3
- Salesforce
- Send Email
- SendGrid
- SerpApi (Google Search)
- Shopify
- Slack
- Spotify
- Stripe
- Supabase
- Telegram
- Todoist
- TOTP
- Trello
- Twilio
- urlscan.io
- Vector Store
- Webflow
- Wikipedia
- Wolfram|Alpha
- WooCommerce
- Wordpress
- X (Formerly Twitter)
- YouTube
- Zendesk
- Zoho CRM
- Zoom
Node parameters#
กำหนดค่า Tools Agent โดยใช้ parameters ต่อไปนี้
Prompt#
Prompt (ข้อความแจ้ง)#
เลือกวิธีที่คุณต้องการให้ node สร้าง prompt (หรือที่เรียกว่า query ของผู้ใช้ หรือ input จากแชท)
เลือกจาก:
- Take from previous node automatically (รับจาก node ก่อนหน้าโดยอัตโนมัติ): หากคุณเลือกตัวเลือกนี้ node จะคาดหวัง input จาก node ก่อนหน้าชื่อ
chatInput
- Define below (กำหนดด้านล่าง): หากคุณเลือกตัวเลือกนี้ ให้ระบุข้อความคงที่หรือ expression สำหรับเนื้อหาแบบไดนามิกเพื่อใช้เป็น prompt ในฟิลด์ Prompt (User Message)
Require Specific Output Format#
Output Format (รูปแบบ Output)#
พารามิเตอร์นี้ควบคุมว่าคุณต้องการให้ node กำหนดรูปแบบ output ที่เฉพาะเจาะจงหรือไม่ เมื่อเปิดใช้งาน n8n จะแจ้งให้คุณเชื่อมต่อ output parser หนึ่งในรายการต่อไปนี้เข้ากับ node:
Node options#
ปรับแต่งพฤติกรรมของ Tools Agent node โดยใช้ options เหล่านี้:
System Message#
System Message (ข้อความระบบ)#
หากคุณต้องการส่งข้อความไปยัง agent ก่อนเริ่มการสนทนา ให้ป้อนข้อความที่คุณต้องการส่ง
ใช้ตัวเลือกนี้เพื่อชี้นำการตัดสินใจของ agent
Max Iterations#
Max Iterations (จำนวนรอบสูงสุด)#
ป้อนจำนวนครั้งที่โมเดลควรทำงานเพื่อพยายามสร้างคำตอบที่ดีจาก prompt ของผู้ใช้
ค่าเริ่มต้นคือ 10
Return Intermediate Steps#
Return Intermediate Steps (ส่งคืนขั้นตอนกลาง)#
เลือกว่าจะรวมขั้นตอนกลางที่ agent ใช้ในการประมวลผลไว้ใน output สุดท้ายหรือไม่ (เปิด) หรือไม่รวม (ปิด)
สิ่งนี้อาจมีประโยชน์สำหรับการปรับแต่งพฤติกรรมของ agent เพิ่มเติมโดยอิงตามขั้นตอนที่ดำเนินการ
Automatically Passthrough Binary Images#
Binary Images (รูปภาพแบบ Binary)#
ใช้ตัวเลือกนี้เพื่อควบคุมว่าจะส่งรูปภาพแบบ binary ผ่านไปยัง agent โดยอัตโนมัติเป็นข้อความประเภทรูปภาพหรือไม่ (เปิด) หรือไม่ส่ง (ปิด)
Templates and examples#
อ้างอิงส่วน Templates and examples ของ AI Agent node หลัก
Dynamic parameters for tools with $fromAI()
#
หากต้องการเรียนรู้วิธีกำหนด parameters แบบไดนามิกสำหรับ app node tools โปรดดูที่ Let AI specify tool parameters with $fromAI()
Common issues#
สำหรับคำถามหรือปัญหาทั่วไปและแนวทางแก้ไขที่แนะนำ โปรดดูที่ Common issues
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.