Skip to content

Durasi: 12 menit | Block: 4


📁 Context Files = Knowledge Base Agent

Agent kamu punya akses ke dokumen bisnis. Bisa baca product catalog, FAQ, SOP, dll.


📝 Example Context Files

products.md

markdown
# Product Catalog — Kopi Nusantara

## Arabica Premium (ID: ARB-001)
- Harga: Rp 150.000 / 250g
- Roast: Medium
- Flavor notes: Chocolate, Caramel, Citrus
- Stok: 50 pack
- Best seller ⭐

## Robusta Classic (ID: RBS-001)
- Harga: Rp 85.000 / 250g
- Roast: Dark
- Flavor notes: Earthy, Nutty, Bold
- Stok: 100 pack
- Budget friendly

## Liberika Special (ID: LBR-001)
- Harga: Rp 200.000 / 250g
- Roast: Light-Medium
- Flavor notes: Fruity, Floral, Unique
- Stok: 20 pack
- Limited edition

faq.md

markdown
# FAQ — Kopi Nusantara

## Umum
**Q: Apa beda Arabica dan Robusta?**
A: Arabica lebih smooth dan fruity, cocok untuk filter coffee. 
Robusta lebih bold dan earthy, cocok untuk espresso mix.

**Q: Berapa lama pengiriman?**
A: Jakarta 1-2 hari, luar Jakarta 3-5 hari kerja.

**Q: Apakah bisa grind?**
A: Ya, bisa request grind (coarse/medium/fine). Tulis di notes saat order.

## Pembayaran
**Q: Metode pembayaran apa saja?**
A: Transfer BCA/BRI/Mandiri, GoPay, OVO, COD (Jakarta only).

**Q: Bisa bayar cicilan?**
A: Untuk order > Rp 500.000, bisa cicil 3x via Kredivo.

brand-guidelines.md

markdown
# Brand Guidelines — Kopi Nusantara

## Brand Voice
- Passionate tentang kopi Indonesia
- Educative — bukan cuma jualan, tapi edukasi
- Warm dan welcoming
- Bangga dengan produk lokal

## Kata-kata yang dipakai
- "Kopi nusantara" (bukan "kopi lokal")
- "Craft coffee" (bukan "kopi biasa")
- "Petani kopi kita" (bukan "supplier")

## Kata-kata yang dihindari
- "Murah" → gunakan "terjangkau"
- "Promo" → gunakan "penawaran spesial"
- "Diskon" → gunakan "harga spesial"

⚙️ AGENTS.md — Project Config

AGENTS.md = konfigurasi spesifik per project/use case.

markdown
# AGENTS.md

## Project: Customer Service Agent — Kopi Nusantara

### Tools yang Tersedia
- `web_search`: Untuk cek info terkini
- `file_read`: Untuk baca product catalog & FAQ
- `file_write`: Untuk log interaksi

### Behavior
- Selalu cek FAQ dulu sebelum jawab pertanyaan umum
- Kalau pertanyaan di luar FAQ, jawab sebisanya + tawarkan escalate
- Log setiap interaksi ke `logs/interactions.md`

### Approval Required
- Sebelum kirim email ke customer → butuh approval
- Sebelum berikan diskon → butuh approval
- Sebelum escalate ke human → konfirmasi dulu

### Cron Jobs
- Daily brief jam 8 pagi: ringkasan interaksi kemarin
- Weekly report: summary + insights

### Escalation Rules
- Komplain berat → WhatsApp ke owner: 0812xxxx
- Pertanyaan tentang partnership → email ke partnership@...
- Refund request → flag untuk review manual

🏗️ Build: Context Pack untuk Use Case Kamu

Step 1: Identify Knowledge Sources

Dokumen apa yang agent kamu butuh?
[ ] Product/service catalog
[ ] FAQ
[ ] Brand guidelines
[ ] SOP / process docs
[ ] Pricing
[ ] Lainnya: _______________

Step 2: Create Files

Buat minimal 2 context file:
1. __________________ (contoh: products.md)
2. __________________ (contoh: faq.md)

Step 3: Configure AGENTS.md

Tools: __________________
Behavior rules: __________________
Approval requirements: __________________
Escalation rules: __________________

⚡ Pro Tips

  1. Start small — 2-3 context files dulu, tambah seiring waktu
  2. Keep files updated — context yang outdated = jawaban yang salah
  3. Structure clearly — pakai headers, bullets, tables biar mudah di-parse
  4. Test with real questions — tanya FAQ ke agent, cek akurasi jawaban
  5. Token budget — monitor berapa tokens yang di-load per session

Bootcamp AI Automation — akala.id