AGENTIKA
  • Blog
  • Learn
  • AI Tools
  • FAQ
Menu
Blog→Learn→AI Tools→FAQ→
AGENTIKA

Platform AI untuk UMKM Indonesia. Tools AI, tutorial otomatisasi, dan strategi side hustle.

Platform

  • Blog
  • Learn
  • FAQ
  • Tentang
  • Kontak
  • Kebijakan Privasi

Community

  • Twitter / X
  • GitHub

© 2026 AGENTIKA. All rights reserved.

HomeBlogLearnAI ToolsFAQ

Ai Automation

  • Pengantar Otomatisasi untuk UMKM
  • WhatsApp Business: Balasan Otomatis Tanpa Ribet
  • Google Sheets sebagai Database Order
  • Workflow Otomatis dengan Make.com & Zapier
  • Studi Kasus: Otomatisasi Order Warung Bu Siti

Ai Basics

  • Pengantar AI Modern
  • Prompt Engineering Fundamentals
  • LLM API Primer
  • Machine Learning Overview
  • AI Tools untuk Produktivitas
  • AI Agents dan Autonomous Systems
  • Data & Pipeline ML
  • RAG & Vector Search
  • Evaluasi Model AI
  • Etika & Responsible AI
  • Dasar API LLM: Menghubungkan Aplikasi dengan AI
  • Prompt Design Patterns untuk Aplikasi
  • Streaming Response dari LLM
  • Error Handling untuk LLM Applications
  • Optimasi Biaya LLM API
  • Multi-Provider LLM Architecture
  • Kapan Harus Fine-tuning Model AI?
  • Menyiapkan Dataset untuk Fine-tuning
  • Proses Training Fine-tuning LLM
  • Evaluasi Model Fine-tuned
  • Deploy Model Fine-tuned ke Produksi
  • Arsitektur RAG: Retrieval-Augmented Generation
  • Embeddings untuk RAG
  • Vector Database untuk RAG
  • Retrieval Strategies untuk RAG
  • RAG di Produksi: Monitoring dan Optimasi
  • Arsitektur AI Agent
  • Tool Use untuk AI Agent
  • Memory Systems untuk AI Agent
  • Multi-Agent Systems
  • Evaluasi AI Agent
  • Safety untuk AI Agent

No Code Tools

  • Pengantar No-Code untuk UMKM
  • Bikin Landing Page Tanpa Coding
  • Katalog Produk Online yang Mudah
  • Chatbot Sederhana Tanpa Coding
  • Form Order Online & Pembayaran

Prompt Engineering Umkm

  • Pengantar: Kenapa Prompt Penting untuk UMKM
  • Anatomi Prompt yang Menjual: Formula 5 Elemen
  • Template Prompt untuk Usaha Kuliner
  • Template Prompt untuk Fashion & Retail
  • Template Prompt untuk Usaha Jasa
Learn / Ai Basics / Lessons / Arsitektur AI Agent

Arsitektur AI Agent

AI Agent bukan sekadar chatbot. Agent bisa mengambil keputusan, menggunakan tools, dan bekerja secara otonom untuk menyelesaikan tugas kompleks.

Agent vs Chatbot

AspekChatbotAI Agent
Input → OutputPertanyaan → JawabanGoal → Plan → Execute → Result
ToolsTidak adaBisa panggil API, baca file, dll.
MemoryConversation sajaLong-term memory + context
AutonomyRendahTinggi (bisa multi-step)
LoopSingle turnMulti-step loop

Core Components

┌─────────────────────────────────────┐
│            AI Agent                 │
│                                     │
│  ┌──────────┐    ┌──────────────┐  │
│  │   LLM    │    │   Memory     │  │
│  │ (Brain)  │    │ (Short/Long) │  │
│  └────┬─────┘    └──────────────┘  │
│       │                             │
│  ┌────▼─────┐    ┌──────────────┐  │
│  │ Planner  │    │   Tools      │  │
│  │          │◄──►│ (Actions)    │  │
│  └────┬─────┘    └──────────────┘  │
│       │                             │
│  ┌────▼─────┐    ┌──────────────┐  │
│  │ Executor │    │  Guardrails  │  │
│  │          │◄──►│ (Safety)     │  │
│  └──────────┘    └──────────────┘  │
└─────────────────────────────────────┘

Agent Loop

async function agentLoop(goal: string, maxIterations = 10) {
  const memory = new Memory();
  let iteration = 0;

  while (iteration < maxIterations) {
    // 1. THINK — LLM memutuskan langkah berikutnya
    const thought = await llm.call([{
      role: "system",
      content: buildSystemPrompt(goal, memory, tools),
    }, {
      role: "user",
      content: "Apa langkah berikutnya?",
    }]);

    const action = parseAction(thought.content);

    // 2. ACT — Execute action
    if (action.type === "tool_call") {
      const result = await executeTool(action.tool, action.params);
      memory.add("observation", result);
    } else if (action.type === "answer") {
      return action.content; // Selesai!
    } else if (action.type === "think") {
      memory.add("thought", action.content);
    }

    iteration++;
  }

  return "Mencapai batas iterasi maksimum.";
}

ReAct Pattern

Reasoning + Acting — pola agent paling populer:

Thought: User bertanya tentang gas fee. Saya perlu mencari informasi terbaru.
Action: search("gas fee ethereum 2026")
Observation: Gas fee rata-rata 15-30 gwei untuk transaksi standar...
Thought: Saya punya informasi cukup untuk menjawab.
Answer: Gas fee di Ethereum saat ini...
function buildReActPrompt(goal: string, memory: Memory) {
  return `Kamu adalah AI agent. Gunakan pola Thought/Action/Observation.

TOOLS yang tersedia:
${tools.map((t) => "- " + t.name + ": " + t.description).join("\n")}

GOAL: ${goal}

Riwayat:
${memory.getHistory()}

Langkah berikutnya (Thought → Action atau Answer):`;
}

Contoh Agent: Research Agent

const researchAgent = new Agent({
  name: "Research Assistant",
  goal: "Riset topik dan buat ringkasan",
  tools: [webSearch, readArticle, summarize],
  llm: "gpt-4o",
  maxIterations: 5,
});

const result = await researchAgent.run(
  "Riset tentang tren AI agents di 2026 dan buat ringkasan 500 kata"
);

Latihan

Buat agent sederhana yang bisa: (1) menerima topik, (2) mencari informasi, (3) merangkum, dan (4) menyimpan hasil. Gunakan ReAct pattern.

← Previous Lesson

RAG di Produksi: Monitoring dan Optimasi

Next Lesson →

Tool Use untuk AI Agent

Sponsored

Eksplorasi Modul Lain

Belajar Terstruktur

Ikuti kurikulum AI step-by-step di modul Learn.

AI Tools Directory

Bandingkan tools AI untuk kebutuhan konten dan produktivitas.

Tanya AI tentang lesson ini

Arsitektur AI Agent

Tanya apa saja seputar materi lesson ini. Jawaban dibuat hanya dari isi lesson.