# Protocol Builder

**The Protocol Builder is the heart of Ignitia**. It’s where you turn an idea into a fully formed, AI-native protocol; with smart contracts, token logic, agent intelligence, and deployment tooling all generated in one flow.

You don’t write code.\
You design intent - and Ignitia builds everything around it.

***

### Step 1: Describe Your Protocol

Start by entering a natural language prompt describing what you want to build.

**Examples:**

* “A staking system with dynamic rewards and an automated pause if rewards spike too fast.”
* “A DAO that uses AI to propose spending thresholds based on treasury inflow rates.”

Ignitia interprets your prompt and sets up the base protocol structure, including smart contract scaffolding and token definitions.

***

### Step 2: Select AI Modules (Required)

Every protocol must include at least one AI module — this is what makes it intelligent.

**Available Modules:**

* **🧠 Predictive Signals** — adjust protocol behavior based on forecasted conditions
* **🛡️ Anomaly Detection** — detect and respond to irregular activity
* **🗳️ Automated Governance** — propose, vote, and adapt rules autonomously
* **💰 AI Treasury Management** — optimize spending, allocation, and reserves
* **🔁 Dynamic Incentives** — fine-tune reward systems in real-time
* **✍️ Custom AI Agent** — write your own agent prompt for custom behavior

You can select multiple modules. Each one adds a distinct AI capability to your protocol logic.

***

### Step 3: Configure Logic

Based on your selected modules, Ignitia opens up additional configuration fields:

* Token settings (supply, taxes, burn/mint rules)
* Reward structures (APR, multipliers, emission rates)
* Governance parameters (proposal thresholds, cooldowns)
* AI triggers (signal thresholds, detection conditions)
* Vesting and unlock schedules

These are **parameter-driven**, not code-based, simple to understand, yet deeply powerful.

***

### Step 4: Module Descriptions (Optional but Powerful)

For each selected AI module, you can enter a custom description of how it should behave.

**Example:**

> _“Pause the protocol if token outflows exceed 2x the daily average over a 24-hour window.”_

These descriptions guide the AI in generating specific logic functions inside your smart contract.

***

### 🧠 Step 5: AI Feedback & Suggestions

Before code is generated, Ignitia’s agent performs a lightweight audit:

* Flags edge cases or risky conditions
* Recommends best practices (e.g. multi-sig failovers, cooldown periods)
* Offers quick fixes with “Fix This Issue” buttons

This creates a feedback loop where you can improve your protocol before it ever hits the chain.

***

### Step 6: Generate Contracts

With everything in place, click **“Generate Code”** to preview your AI-assembled smart contract.

You’ll get:

* Complete contract code (Solidity or Anchor)
* Scrollable, syntax-highlighted preview
* Per-module logic blocks
* Copy, download, or save as a template

***

### Step 7: Continue to Deploy

Once you’ve reviewed and (optionally) fixed any issues, you’re ready to deploy.

Clicking **Deploy** will:

* Simulate token creation on devnet
* Add liquidity to a simulated pool
* Launch your protocol with a token page + landing UI

→ More on this in **Deploy & Launch**
