Forge is powerful because it injects the right data into the right model — but the final output depends entirely on how the prompt is written. Prompt engineering is where you define how an agent thinks, what it focuses on, and how it speaks.
This page explains how to write and customize prompt templates inside Forge, so your agents generate better responses, tailored to your goals.
What Is a Prompt Template?
A prompt template is a structured block of text sent to the language model. It includes:
A formatting preference (style, tone, output type)
Agents use these templates to speak in different voices depending on who’s asking — traders, analysts, devs, researchers.
Prompt Structure
Every prompt in Forge follows a consistent structure:
yamlCopyEditToken Context:
- Name: $DUCK
- LP: 18 SOL, unlocked
- Ownership: Not renounced
- Deployer: 7AuCty3w..., 3 rugs in last 24h
Wallet Context:
- Known sniper 8fjNqk... bought 5% supply
- 2 large sells within first 3 minutes
Instruction:
Summarize risk profile in plain language. Include deployer risk, LP safety, and buyer pattern. Respond as if explaining to a cautious trader.
This allows the language model to reason based on clear, factual context with a specific communication style.
Customizing a Prompt
Inside your agent’s logic, you can rewrite the prompt template:
tsCopyEditprompt: (ctx) => `
Token ${ctx.name} launched ${ctx.minutesAgo} ago with ${ctx.lp} SOL liquidity.
Deployer wallet ${ctx.deployer} has launched ${ctx.previousLaunches.length} tokens before, ${ctx.rugCount} of which rugged.
Buyers include ${ctx.sniperCount} sniper wallets.
Give a clear risk assessment and explain red flags to a human reader.
`