Skip to content

AI & LLM

AI model integration, text generation, embeddings, and autonomous agents.

18 modules

ModuleDescription
ตัวแทนอัตโนมัติAI agent ที่ควบคุมตัวเองพร้อมหน่วยความจำและพฤติกรรมมุ่งเป้าหมาย
ตัวแทนแบบลูกโซ่ห่วงโซ่การประมวลผล AI แบบลำดับพร้อมหลายขั้นตอน
Agent การใช้เครื่องมือAI Agent ที่สามารถเรียกใช้เครื่องมือ/ฟังก์ชันได้
การฝังข้อความสร้างเวกเตอร์ฝังจากข้อความโดยใช้โมเดล AI
AI ดึงข้อมูลดึงข้อมูลที่มีโครงสร้างจากข้อความโดยใช้ AI
Local Ollama Chatแชทกับ LLM ในเครื่องผ่าน Ollama (ออฟไลน์อย่างสมบูรณ์)
AI Memoryหน่วยความจำการสนทนาสำหรับ AI Agent
Entity Memoryดึงและติดตาม entity (บุคคล สถานที่ แนวคิด) จากการสนทนา
Redis Memoryหน่วยความจำการสนทนาถาวรโดยใช้การจัดเก็บ Redis
Vector Memoryหน่วยความจำเชิงความหมายโดยใช้ vector embeddings สำหรับการดึงบริบทที่เกี่ยวข้อง
AI Modelการกำหนดค่าโมเดล LLM สำหรับ AI Agent
AI ToolExpose a module as a tool for AI Agent
การวิเคราะห์วิชั่นวิเคราะห์ภาพโดยใช้โมเดล AI วิชั่น
Claude Chatส่งข้อความแชทไปยัง Anthropic Claude AI และรับการตอบกลับ
Google Gemini Chatส่งข้อความแชทไปยัง Google Gemini AI และรับการตอบกลับ
OpenAI Chatส่งข้อความแชทไปยังโมเดล OpenAI GPT
DALL-E Image Generationสร้างรูปภาพโดยใช้ DALL-E
AI AgentAI Agent อัตโนมัติพร้อมการเชื่อมต่อหลายพอร์ต (โมเดล, หน่วยความจำ, เครื่องมือ)

Modules

ตัวแทนอัตโนมัติ

agent.autonomous

AI agent ที่ควบคุมตัวเองพร้อมหน่วยความจำและพฤติกรรมมุ่งเป้าหมาย

Parameters:

NameTypeRequiredDefaultDescription
goalstringYes-เป้าหมายที่ agent ต้องบรรลุ
contextstringNo-เป้าหมายที่ agent ต้องบรรลุ
max_iterationsnumberNo5บริบทหรือข้อจำกัดเพิ่มเติม
llm_providerselect (openai, ollama)Noopenaiขั้นตอนการใช้เหตุผลสูงสุด
modelstringNogpt-4-turbo-previewชื่อโมเดล (เช่น gpt-4, llama2, mistral)
ollama_urlstringNohttp://localhost:11434ชื่อโมเดล (เช่น gpt-4, llama2, mistral)
temperaturenumberNo0.7URL เซิร์ฟเวอร์ Ollama (เฉพาะสำหรับผู้ให้บริการ ollama)

Output:

FieldTypeDescription
resultstringระดับความคิดสร้างสรรค์ (0-2)
thoughtsarrayผลลัพธ์การดำเนินการ
iterationsnumberผลลัพธ์การดำเนินการ
goal_achievedbooleanขั้นตอนการใช้เหตุผลของ agent

Example: Research task

yaml
goal: Research the latest trends in AI and summarize the top 3
max_iterations: 5
model: gpt-4

Example: Problem solving

yaml
goal: Find the best approach to optimize database queries
context: PostgreSQL database with 10M records
max_iterations: 10

ตัวแทนแบบลูกโซ่

agent.chain

ห่วงโซ่การประมวลผล AI แบบลำดับพร้อมหลายขั้นตอน

Parameters:

NameTypeRequiredDefaultDescription
inputstringYes-อินพุตเริ่มต้นสำหรับห่วงโซ่
chain_stepsarrayYes-อินพุตเริ่มต้นสำหรับห่วงโซ่
llm_providerselect (openai, ollama)Noopenaiอาร์เรย์ของขั้นตอนการประมวลผล (แต่ละตัวคือเทมเพลต prompt)
modelstringNogpt-4-turbo-previewชื่อโมเดล (เช่น gpt-4, llama2, mistral)
ollama_urlstringNohttp://localhost:11434ชื่อโมเดล (เช่น gpt-4, llama2, mistral)
temperaturenumberNo0.7URL เซิร์ฟเวอร์ Ollama (เฉพาะสำหรับผู้ให้บริการ ollama)

Output:

FieldTypeDescription
resultstringระดับความคิดสร้างสรรค์ (0-2)
intermediate_resultsarrayผลลัพธ์การดำเนินการ
steps_completednumberผลลัพธ์การดำเนินการ

Example: Content pipeline

yaml
input: AI and machine learning trends
chain_steps: ["Generate 5 blog post ideas about: {input}", "Take the first idea and write a detailed outline: {previous}", "Write an introduction paragraph based on: {previous}"]
model: gpt-4

Example: Data analysis chain

yaml
input: User behavior data shows 60% bounce rate
chain_steps: ["Analyze what might cause this issue: {input}", "Suggest 3 solutions based on: {previous}", "Create an action plan from: {previous}"]

Agent การใช้เครื่องมือ

agent.tool_use

AI Agent ที่สามารถเรียกใช้เครื่องมือ/ฟังก์ชันได้

Parameters:

NameTypeRequiredDefaultDescription
promptstringYes-เป้าหมายหรือภารกิจสำหรับเอเจนต์
toolsarrayYes-รายการคำจำกัดความของเครื่องมือ [{name, description, parameters}]
providerselect (openai, anthropic)Noopenaiผู้ให้บริการ LLM สำหรับเอเจนต์
modelstringNogpt-4oโมเดลที่จะใช้
api_keystringNo-คีย์ API (ใช้ตัวแปรสภาพแวดล้อมหากไม่มี)
max_iterationsnumberNo10จำนวนรอบการเรียกใช้เครื่องมือสูงสุด
system_promptstringNo-คำถามระบบเสริมเพื่อแนะนำเอเจนต์

Output:

FieldTypeDescription
resultstringคำตอบสุดท้ายของเอเจนต์
tool_callsarrayการเรียกใช้เครื่องมือทั้งหมดระหว่างการทำงาน
iterationsnumberจำนวนรอบที่ทำเสร็จแล้ว
modelstringโมเดลที่ใช้

Example: File Processing Agent

yaml
prompt: Read the config file and update the version number
tools: [{"name": "read_file", "description": "Read contents of a file", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path"}}, "required": ["path"]}}, {"name": "write_file", "description": "Write contents to a file", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path"}, "content": {"type": "string", "description": "File content"}}, "required": ["path", "content"]}}]
provider: openai
model: gpt-4o
max_iterations: 5

การฝังข้อความ

ai.embed

สร้างเวกเตอร์ฝังจากข้อความโดยใช้โมเดล AI

Parameters:

NameTypeRequiredDefaultDescription
textstringYes-ข้อความที่จะฝัง
providerselect (openai, local)Noopenaiผู้ให้บริการ AI สำหรับการฝัง
modelstringNotext-embedding-3-smallโมเดลการฝังที่ใช้
api_keystringNo-คีย์ API (ใช้ตัวแปรสิ่งแวดล้อมหากไม่มี)
dimensionsnumberNo-มิติการฝัง (สำหรับโมเดลที่รองรับ)

Output:

FieldTypeDescription
embeddingsarrayอาร์เรย์เวกเตอร์ฝัง
modelstringโมเดลที่ใช้สำหรับการฝัง
dimensionsnumberจำนวนมิติในเวกเตอร์ฝัง
token_countnumberจำนวนโทเค็นที่ประมวลผล

Example: Single Text Embedding

yaml
text: The quick brown fox jumps over the lazy dog
provider: openai
model: text-embedding-3-small

Example: Reduced Dimensions

yaml
text: Semantic search query
provider: openai
model: text-embedding-3-small
dimensions: 256

AI ดึงข้อมูล

ai.extract

ดึงข้อมูลที่มีโครงสร้างจากข้อความโดยใช้ AI

Parameters:

NameTypeRequiredDefaultDescription
textstringYes-ข้อความที่ต้องการดึงข้อมูลจาก
schemaobjectYes-สคีมา JSON ที่กำหนดฟิลด์ที่จะดึง
instructionsstringNo-คำแนะนำเพิ่มเติมในการดึงข้อมูล
providerselect (openai, anthropic)Noopenaiผู้ให้บริการ AI ที่ใช้
modelstringNogpt-4o-miniโมเดลที่ใช้สำหรับการดึงข้อมูล
api_keystringNo-คีย์ API (ใช้ตัวแปรสิ่งแวดล้อมหากไม่มี)
temperaturenumberNo0อุณหภูมิการสุ่มตัวอย่าง (0-2)

Output:

FieldTypeDescription
extractedobjectข้อมูลที่มีโครงสร้างที่ดึงออกมา
modelstringโมเดลที่ใช้สำหรับการดึงข้อมูล
raw_responsestringการตอบสนองดิบจากโมเดล

Example: Extract Contact Info

yaml
text: John Smith is a senior engineer at Acme Corp. Email: john@acme.com
schema: {"type": "object", "properties": {"name": {"type": "string"}, "title": {"type": "string"}, "company": {"type": "string"}, "email": {"type": "string"}}}
provider: openai
model: gpt-4o-mini

Example: Extract Invoice Data

yaml
text: Invoice #1234 from Acme Corp. Total: $500.00. Due: 2024-03-01
schema: {"type": "object", "properties": {"invoice_number": {"type": "string"}, "vendor": {"type": "string"}, "total": {"type": "number"}, "due_date": {"type": "string"}}}
instructions: Extract all invoice fields. Parse amounts as numbers.

Local Ollama Chat

ai.local_ollama.chat

แชทกับ LLM ในเครื่องผ่าน Ollama (ออฟไลน์อย่างสมบูรณ์)

Parameters:

NameTypeRequiredDefaultDescription
promptstringYes-ข้อความที่จะส่งไปยัง LLM ในเครื่อง
modelselect (llama2, llama2:13b, llama2:70b, mistral, mixtral, codellama, codellama:13b, phi, neural-chat, starling-lm)Nollama2ข้อความที่จะส่งไปยัง LLM ในเครื่อง
temperaturenumberNo0.7Temperature ในการสุ่ม (0-2)
system_messagestringNo-ข้อความบทบาทระบบ (ไม่บังคับ)
ollama_urlstringNohttp://localhost:11434ข้อความบทบาทระบบ (ไม่บังคับ)
max_tokensnumberNo-URL เซิร์ฟเวอร์ Ollama

Output:

FieldTypeDescription
responsestringโทเค็นสูงสุดในการตอบกลับ (ไม่บังคับ ขึ้นอยู่กับโมเดล)
modelstringการตอบกลับจากการดำเนินการ
contextarrayการตอบกลับจากการดำเนินการ
total_durationnumberชื่อโมเดลหรือตัวระบุ
load_durationnumberบริบทการสนทนาสำหรับคำขอติดตาม
prompt_eval_countnumberระยะเวลาประมวลผลทั้งหมด
eval_countnumberระยะเวลาโหลดโมเดล

Example: Simple local chat

yaml
prompt: Explain quantum computing in 3 sentences
model: llama2

Example: Code generation with local model

yaml
prompt: Write a Python function to calculate fibonacci numbers
model: codellama
temperature: 0.2
system_message: You are a Python programming expert. Write clean, efficient code.

Example: Local reasoning task

yaml
prompt: What are the pros and cons of microservices architecture?
model: mistral
temperature: 0.7

AI Memory

ai.memory

หน่วยความจำการสนทนาสำหรับ AI Agent

Parameters:

NameTypeRequiredDefaultDescription
memory_typeselect (buffer, window, summary)Yesbufferประเภทการจัดเก็บหน่วยความจำ
window_sizenumberNo10จำนวนข้อความล่าสุดที่จะเก็บ (สำหรับหน่วยความจำแบบหน้าต่าง)
session_idstringNo-ตัวระบุเฉพาะสำหรับเซสชันการสนทนานี้
initial_messagesarrayNo[]ประวัติการสนทนาที่โหลดไว้ล่วงหน้า

Output:

FieldTypeDescription
memory_typestringประวัติการสนทนาที่โหลดไว้ล่วงหน้า
session_idstringประวัติการสนทนาที่โหลดไว้ล่วงหน้า
messagesarrayประเภทหน่วยความจำ
configobjectตัวระบุเซสชัน

Example: Simple Buffer Memory

yaml
memory_type: buffer

Example: Window Memory (last 5 messages)

yaml
memory_type: window
window_size: 5

Entity Memory

ai.memory.entity

ดึงและติดตาม entity (บุคคล สถานที่ แนวคิด) จากการสนทนา

Parameters:

NameTypeRequiredDefaultDescription
entity_typesmultiselectNo['person', 'organization', 'location']Types of entities to extract and track
extraction_modelselect (llm, spacy, regex)YesllmModel for entity extraction
session_idstringNo-Unique identifier for this memory session
track_relationshipsbooleanNoTrueTrack relationships between entities
max_entitiesnumberNo100Maximum number of entities to remember

Output:

FieldTypeDescription
memory_typestringจำนวน entity สูงสุดที่จะจดจำ
session_idstringจำนวน entity สูงสุดที่จะจดจำ
entitiesobjectประเภทหน่วยความจำ (entity)
relationshipsarrayตัวระบุเซสชัน
configobjectEntity ที่ติดตามตามประเภท

Example: People & Organizations

yaml
entity_types: ["person", "organization"]
extraction_model: llm

Example: Full Entity Tracking

yaml
entity_types: ["person", "organization", "location", "concept"]
track_relationships: true
max_entities: 200

Redis Memory

ai.memory.redis

หน่วยความจำการสนทนาถาวรโดยใช้การจัดเก็บ Redis

Parameters:

NameTypeRequiredDefaultDescription
redis_urlstringYesredis://localhost:6379Redis connection URL
key_prefixstringNoflyto:memory:Prefix for all Redis keys
session_idstringYes-Unique identifier for this memory session
ttl_secondsnumberNo86400Time-to-live for memory entries (0 = no expiry)
max_messagesnumberNo100Maximum messages to store per session
load_on_startbooleanNoTrueLoad existing messages from Redis on initialization

Output:

FieldTypeDescription
memory_typestringโหลดข้อความที่มีอยู่จาก Redis เมื่อเริ่มต้น
session_idstringโหลดข้อความที่มีอยู่จาก Redis เมื่อเริ่มต้น
messagesarrayประเภทหน่วยความจำ (redis)
connectedbooleanตัวระบุเซสชัน
configobjectประวัติข้อความที่โหลด

Example: Local Redis

yaml
redis_url: redis://localhost:6379
session_id: my-session
ttl_seconds: 3600

Example: Cloud Redis with Auth

yaml
redis_url: redis://:password@redis-cloud.example.com:6379
session_id: user-session
ttl_seconds: 86400
max_messages: 500

Vector Memory

ai.memory.vector

หน่วยความจำเชิงความหมายโดยใช้ vector embeddings สำหรับการดึงบริบทที่เกี่ยวข้อง

Parameters:

NameTypeRequiredDefaultDescription
embedding_modelselect (text-embedding-3-small, text-embedding-3-large, text-embedding-ada-002, local)Yestext-embedding-3-smallModel to use for generating embeddings
top_knumberNo5Number of most relevant memories to retrieve
similarity_thresholdnumberNo0.7Minimum similarity score (0-1) for retrieval
session_idstringNo-Unique identifier for this memory session
include_metadatabooleanNoTrueInclude timestamp and other metadata with memories

Output:

FieldTypeDescription
memory_typestringรวม timestamp และ metadata อื่น ๆ กับหน่วยความจำ
session_idstringรวม timestamp และ metadata อื่น ๆ กับหน่วยความจำ
embedding_modelstringประเภทหน่วยความจำ (vector)
configobjectตัวระบุเซสชัน

Example: Default Vector Memory

yaml
embedding_model: text-embedding-3-small
top_k: 5

Example: High Precision Memory

yaml
embedding_model: text-embedding-3-large
top_k: 10
similarity_threshold: 0.85

AI Model

ai.model

การกำหนดค่าโมเดล LLM สำหรับ AI Agent

Parameters:

NameTypeRequiredDefaultDescription
providerselect (openai, anthropic, ollama)NoopenaiAI model provider
modelstringNogpt-4oSpecific model to use
temperaturenumberNo0.7Creativity level (0=deterministic, 1=creative)
api_keystringNo-API key (defaults to provider env var)
base_urlstringNo-Custom API base URL (for Ollama or proxies)
max_tokensnumberNo4096โทเค็นสูงสุดในการตอบกลับ

Output:

FieldTypeDescription
providerstringโทเค็นสูงสุดในการตอบกลับ
modelstringชื่อผู้ให้บริการ LLM
configobjectชื่อผู้ให้บริการ LLM

Example: OpenAI GPT-4

yaml
provider: openai
model: gpt-4o
temperature: 0.7

Example: Anthropic Claude

yaml
provider: anthropic
model: claude-3-5-sonnet-20241022
temperature: 0.5

AI Tool

ai.tool

Expose a module as a tool for AI Agent

Parameters:

NameTypeRequiredDefaultDescription
module_idstringYes-Module ID to expose as tool (e.g. http.request, data.json_parse)
tool_descriptionstringNo-Custom description for the agent (overrides module default)

Output:

FieldTypeDescription
module_idstringModule ID exposed as tool

Example: HTTP Request Tool

yaml
module_id: http.request

Example: JSON Parse Tool

yaml
module_id: data.json_parse

การวิเคราะห์วิชั่น

ai.vision.analyze

วิเคราะห์ภาพโดยใช้โมเดล AI วิชั่น

Parameters:

NameTypeRequiredDefaultDescription
image_pathstringNo-เส้นทางท้องถิ่นไปยังไฟล์ภาพ
image_urlstringNo-URL ของภาพที่ต้องการวิเคราะห์
promptstringNoDescribe this image in detailต้องการวิเคราะห์หรือถามเกี่ยวกับภาพอะไร
providerselect (openai, anthropic)Noopenaiผู้ให้บริการ AI สำหรับการวิเคราะห์วิชั่น
modelstringNogpt-4oโมเดลวิชั่นที่ใช้
api_keystringNo-คีย์ API (ใช้ตัวแปรสิ่งแวดล้อมหากไม่มี)
max_tokensnumberNo1000จำนวนโทเค็นสูงสุดในการตอบสนอง
detailselect (low, high, auto)Noautoระดับรายละเอียดของภาพ (ต่ำ/สูง/อัตโนมัติ)

Output:

FieldTypeDescription
analysisstringการวิเคราะห์ภาพโดย AI
modelstringโมเดลที่ใช้สำหรับการวิเคราะห์
providerstringผู้ให้บริการที่ใช้สำหรับการวิเคราะห์
tokens_usednumberจำนวนโทเค็นที่ใช้

Example: Analyze Screenshot

yaml
image_path: /tmp/screenshot.png
prompt: Describe what you see in this UI screenshot
provider: openai
model: gpt-4o

Example: Analyze from URL

yaml
image_url: https://example.com/photo.jpg
prompt: What objects are in this image?
provider: anthropic
model: claude-sonnet-4-20250514

Claude Chat

api.anthropic.chat

ส่งข้อความแชทไปยัง Anthropic Claude AI และรับการตอบกลับ

Parameters:

NameTypeRequiredDefaultDescription
api_keystringNo-Anthropic API key (ค่าเริ่มต้น env.ANTHROPIC_API_KEY)
modelstringNoclaude-3-5-sonnet-20241022โมเดล Claude ที่จะใช้
messagesarrayYes-อาร์เรย์ของออบเจ็กต์ข้อความพร้อม role และ content
max_tokensnumberNo1024เนื้อหาที่ส่งคืนจากการดำเนินการ
temperaturenumberNo1.0Temperature ในการสุ่ม (0-1) ค่าสูงทำให้เอาต์พุตสุ่มมากขึ้น
systemstringNo-System prompt เพื่อกำหนดพฤติกรรม Claude

Output:

FieldTypeDescription
contentstringSystem prompt เพื่อกำหนดพฤติกรรม Claude
modelstringข้อความตอบกลับของ Claude
stop_reasonstringโมเดลที่ใช้สำหรับการตอบกลับ
usageobjectเหตุผลที่โมเดลหยุดสร้าง (end_turn, max_tokens ฯลฯ)

Example: Simple question

yaml
messages: [{"role": "user", "content": "What is the capital of France?"}]
max_tokens: 100

Example: Text summarization

yaml
system: You are a helpful assistant that summarizes text concisely.
messages: [{"role": "user", "content": "Summarize this article: ${article_text}"}]
max_tokens: 500

Google Gemini Chat

api.google_gemini.chat

ส่งข้อความแชทไปยัง Google Gemini AI และรับการตอบกลับ

Parameters:

NameTypeRequiredDefaultDescription
api_keystringNo-Google AI API key (ค่าเริ่มต้น env.GOOGLE_AI_API_KEY)
modelstringNogemini-1.5-proโมเดล Gemini ที่จะใช้
promptstringYes-ข้อความ prompt ที่จะส่งไปยัง Gemini
temperaturenumberNo1.0ควบคุมความสุ่ม (0-2) ค่าสูงทำให้เอาต์พุตสุ่มมากขึ้น
max_output_tokensnumberNo2048จำนวนโทเค็นสูงสุดในการตอบกลับ

Output:

FieldTypeDescription
textstringGenerated text response from Gemini
modelstringModel used for generation
candidatesarrayAll candidate responses

Example: Simple question

yaml
prompt: Explain quantum computing in simple terms

Example: Content generation

yaml
prompt: Write a professional email about ${topic}
temperature: 0.7
max_output_tokens: 500

OpenAI Chat

api.openai.chat

ส่งข้อความแชทไปยังโมเดล OpenAI GPT

Parameters:

NameTypeRequiredDefaultDescription
promptstringYes-ข้อความที่จะส่งไปยัง GPT
modelselect (gpt-4-turbo-preview, gpt-4, gpt-3.5-turbo)Nogpt-4-turbo-previewข้อความที่จะส่งไปยัง GPT
temperaturenumberNo0.7Temperature ในการสุ่ม (0-2)
max_tokensnumberNo1000Temperature ในการสุ่ม (0-2)
system_messagestringNo-โทเค็นสูงสุดในการตอบกลับ

Output:

FieldTypeDescription
responsestringข้อความบทบาทระบบ (ไม่บังคับ)
modelstringการตอบกลับจากการดำเนินการ
usageobjectการตอบกลับจากการดำเนินการ

Example: Simple chat

yaml
prompt: Explain quantum computing in 3 sentences
model: gpt-3.5-turbo

Example: Code generation

yaml
prompt: Write a Python function to calculate fibonacci numbers
model: gpt-4
temperature: 0.2
system_message: You are a Python programming expert

DALL-E Image Generation

api.openai.image

สร้างรูปภาพโดยใช้ DALL-E

Parameters:

NameTypeRequiredDefaultDescription
promptstringYes-คำอธิบายรูปภาพที่จะสร้าง
sizeselect (256x256, 512x512, 1024x1024, 1792x1024, 1024x1792)No1024x1024คำอธิบายรูปภาพที่จะสร้าง
modelselect (dall-e-3, dall-e-2)Nodall-e-3เวอร์ชันโมเดล DALL-E
qualityselect (standard, hd)Nostandardคุณภาพรูปภาพ (DALL-E 3 เท่านั้น)
nnumberNo1จำนวนรูปภาพที่จะสร้าง (1-10)

Output:

FieldTypeDescription
imagesarrayList of generated images
modelstringModel name or identifier

Example: Generate artwork

yaml
prompt: A serene mountain landscape at sunset, digital art
size: 1024x1024
model: dall-e-3
quality: hd

Example: Create logo

yaml
prompt: Modern tech startup logo with blue and green colors
size: 512x512
model: dall-e-2
n: 3

AI Agent

llm.agent

AI Agent อัตโนมัติพร้อมการเชื่อมต่อหลายพอร์ต (โมเดล, หน่วยความจำ, เครื่องมือ)

Parameters:

NameTypeRequiredDefaultDescription
prompt_sourceselect (manual, auto)Nomanualตำแหน่งที่จะรับ task prompt
taskstringNo-งานที่ต้องการให้ Agent ทำ ใช้ {{input}} เพื่ออ้างอิงข้อมูลต้นทาง
prompt_pathstringNo{<!-- -->{input}<!-- -->}พาธสำหรับดึง prompt จากอินพุต (เช่น {{input.message}})
join_strategyselect (first, newline, separator, json)Nofirstวิธีจัดการอินพุตอาร์เรย์
join_separatorstringNo`

| ตัวคั่นสำหรับรวมรายการในอาร์เรย์ | |max_input_size| number | No |10000| จำนวนอักขระสูงสุดสำหรับ prompt (ป้องกัน overflow) | |system_prompt| string | No |You are a helpful AI agent. Use the available tools to complete the task. Think step by step.| คำแนะนำสำหรับพฤติกรรมของ Agent | |tools| array | No |[]| รายการรหัสโมดูล (ทางเลือกแทนการเชื่อมต่อโหนดเครื่องมือ) | |context| object | No |{}| รายการรหัสโมดูล (ทางเลือกแทนการเชื่อมต่อโหนดเครื่องมือ) | |max_iterations| number | No |10| ข้อมูลบริบทเพิ่มเติมสำหรับ Agent | |provider | select (openai, anthropic, ollama) | No | openai| AI model provider | |model| string | No |gpt-4o| Specific model to use | |temperature| number | No |0.3| Creativity level (0=deterministic, 1=creative) | |api_key| string | No | - | API key (defaults to provider env var) | |base_url` | string | No | - | Custom API base URL (for Ollama or proxies) |

Output:

FieldTypeDescription
okbooleanAgent ทำงานสำเร็จหรือไม่
resultstringAgent ทำงานสำเร็จหรือไม่
stepsarrayAgent ทำงานสำเร็จหรือไม่
tool_callsnumberผลลัพธ์สุดท้ายจาก Agent
tokens_usednumberรายการขั้นตอนที่ Agent ดำเนินการ

Example: Web Research Agent

yaml
task: Search for the latest news about AI and summarize the top 3 stories
tools: ["http.request", "data.json_parse"]
model: gpt-4o

Example: Data Processing Agent

yaml
task: Read the CSV file, filter rows where status is "active", and count them
tools: ["file.read", "data.csv_parse", "array.filter"]
model: gpt-4o

Released under the Apache 2.0 License.