Cod3x Create
  • Getting Started
    • Making Your First Agent
      • Creating Your First Agent
      • Funding Your Agent
      • Connecting Socials
      • Scheduling Tasks
    • Prompting Your Agent
      • How Prompting Works
      • How Cod3x Constructs Context
      • Creating and Managing New Memories
      • Dynamic Prompting
  • Improving Your Agent
    • Training a Cod3x Agent
      • The Brain of a Cod3x Agent
      • Manual Training
      • Best Practices
    • Debugging Your Agent
      • Analyzing a Run
      • Subtasks
      • Bug-Resistant Agents
      • Execution Logs and Common Errors
Powered by GitBook
On this page
Export as PDF
  1. Getting Started
  2. Prompting Your Agent

Dynamic Prompting

Cod3x AI agents don’t rely on static, one-size-fits-all responses. Instead, they use dynamic prompting, a system that adapts in real-time based on user context, past interactions, and live market data. This ensures that every AI-generated response is precise, relevant, and actionable.

What is Dynamic Prompting?

Dynamic prompting is the process of modifying a prompt on the fly to optimize AI performance. Instead of treating each user request as an isolated input, Cod3x agents:

  1. Retrieve relevant past interactions – Ensuring continuity in ongoing financial strategies.

  2. Incorporate real-time market data – Adjusting recommendations based on the latest conditions.

  3. Refine task execution based on previous successes and failures – Avoiding redundant or suboptimal actions.

By dynamically enhancing and restructuring prompts, Cod3x ensures that AI agents always respond with the most informed and effective strategy.

How Cod3x AI Uses Dynamic Prompting

  1. Context-Aware Query Expansion

    • Instead of responding to broad queries with generic answers, the agent reframes the question to maximize precision.

    • User: “Find me a good yield opportunity on my BTC.”

    • Agent (Expanded Prompt): “Find a yield opportunity for BTC that offers at least 5% APY, aligns with the user's historical risk preference, and supports assets they currently hold.”

  2. Live Data Injection

    • AI agents dynamically pull market data before forming a response.

    • User: “What’s the best yield for stablecoins?”

    • AI (Expanded Prompt): “Check current stablecoin lending rates on Aave, Frax, and Convex. Compare yields, assess protocol security, and prioritize strategies with sustainable returns.”

  3. Multi-Step Reasoning

    • Instead of providing just an answer, the agent thinks through the problem step by step.

    • User: “Optimize my portfolio.”

    • AI (Expanded Prompt):

      1. Analyze current holdings.

      2. Identify underperforming assets.

      3. Suggest alternative allocations.

      4. Execute new strategy.

Why Dynamic Prompting Matters

  • More accurate responses – Ensures every prompt is tailored to current conditions and user-specific data.

  • Less redundant input from users – Reduces the need for users to manually provide extra details every time.

  • Faster execution of complex strategies – AI prepares and refines tasks before execution, reducing inefficiencies.

  • Increased adaptability – Adjusts in real time to market fluctuations, execution failures, and evolving user goals.

By leveraging dynamic prompting, Cod3x AI agents transform raw user intent into precisely structured, high-performance actions, ensuring that every response is smarter, faster, and more aligned with the user’s goals.

PreviousCreating and Managing New MemoriesNextTraining a Cod3x Agent

Last updated 2 months ago