Quick Start
Your first Echo template
Installation
bash
npm install @echo-pdk/coreYour First Dynamic Prompt
Create a prompt that adapts based on context:
support-agent.echo
// support-agent.echo
You are a support agent for {{company}}.
[#IF {{customer.tier}} #equals(Premium)]
This is a Premium customer - prioritize their request.
[END IF]
Help them with: {{issue}}Render the Prompt
import { createEcho } from "@echo-pdk/core"
const echo = createEcho()
const result = await echo.render(template, {
company: "Acme Inc",
customer: { tier: "Premium" },
issue: "billing question"
})
// Result:
// You are a support agent for Acme Inc.
// This is a Premium customer - prioritize their request.
// Help them with: billing question