How to write winning prompts for AI agents in 2026

Why Prompts Are the Key to AI Agents in 2026

In today’s tech landscape, a well-crafted prompt can transform a large language model into a highly specialized AI agent. Whether you’re automating a TMS workflow, building a voice assistant with Cartesia Sonic-3.6, or optimizing business decision-making, the quality of your prompt determines the success of the entire project.

The industry is witnessing rapid adoption of dedicated AI agents. Alvys has launched an agentic AI platform that operates directly within TMS systems, while Cartesia has released Sonic-3.6, a streaming TTS model based on state-space models that now dominates both text-to-speech scenarios.

To harness these technologies, you need to learn how to craft prompts that guide the agent toward precise and repeatable results.

Building Effective Prompts: A Step-by-Step Checklist

  • Be specific and contextual.Include the domain, desired output format, and any constraints.
  • Define the agent’s role.Tell the LLM its purpose (e.g., load optimizer, voice script generator).
  • Use question framing.Start with “How can I…” or “What are…” to guide the model toward a structured response.
  • Add constraints and examples.Specify length, style, taxonomy, or reference data.
  • Iterate with feedback.Record outputs, identify gaps, and refine the prompt accordingly.

Practical Example 1: Prompt for an Alvys AI Agent (Load Optimization)

When working with the Alvys platform, an effective prompt might look like this:

Generate an optimal loading plan for the next 7 days using the following constraints: - Vehicle capacity: 30 tons - Delivery points: Milan, Turin, Genoa - Weight restrictions per pallet: max 1.5 tons - Preference for direct routes Return the result in JSON format with fields: "day", "route", "capacity_used".

This prompt tells the agent the goal, provides the available data, and specifies the desired format, ensuring output that is immediately usable in the TMS system.

Practical Example 2: Prompt for Cartesia Sonic-3.6 (Voice Assistant)

If you want to generate a custom voice message for an assistant, try this prompt:

Write a 30-second script for a voice assistant that announces train schedules at Rome Termini station. Use a friendly and professional tone, include departures for Milan and Naples, and indicate boarding platforms. Provide me with text ready for synthesis with a streaming TTS model (Sonic-3.6) and flag any pronunciation errors.

The model will receive a clear script optimized for streaming text-to-speech synthesis and free of ambiguity.

Best Practices: Prompt Structure for Different Use Cases

Use CasePrompt Structure
Data AnalysisDefine the problem, provide input data, request specific metrics, and format in markdown.
Code GenerationSpecify programming language, library, and examples of functionality.
Content CreationIndicate tone, length, audience, and main selling point.

Actionable Takeaways

  • Always write prompts that include the desired output format.This reduces the need for post-processing.
  • Save successful prompts in a repository.Create a reusable library for future projects.
  • Test with edge cases.Inject anomalous data to verify the agent’s robustness.
  • Stay updated on new APIs.Alvys and Cartesia frequently release new features; adapting prompts keeps your workflows cutting-edge.

Conclusion: The Winning Prompt Is Your Competitive Advantage

Start today: identify a real problem, craft a specific prompt, and watch the agent transform data into concrete actions. The future of automation belongs to those who know how to ask the right questions.

**Important:** We are in 2026. All temporal references must be current. Do not mention past years such as 2024, 2023, etc. The content must be fresh and relevant to the present. **Current Context (August 2026):** Here are some recent trends and news stories to inspire you: - ByteDance Seed and Tsinghua AIR Introduce CUDA Agent: A Large-Scale Agentic RL System for CUDA Kernel Generation: ByteDance Seed and Tsinghua AIR have released CUDA Agent, an agentic reinforcement learning system that trains a large language model to write GPU kernels... [2026-08-18] - Nous Research Ships Bot Mode for Hermes Agent, Turning Agent Profiles Into a Roster of Named Bots: Nous Research has shipped Bot Mode for Hermes Agent, its MIT-licensed open-source agent. Bot Mode replaces the single-agent session list with a roster... [2026-08-18] - Google AI Health Coach to Use Abbott Glucose Data: Abbott and Google are linking continuous glucose monitoring data with Google’s AI-powered health coaching tools, giving the Gemini-powered service a... [2026-08-14] Use this current information as inspiration to create an original and relevant prompt for 2026.

💼 Vuoi ottimizzare i tuoi processi con l'AI?

Scopri come possiamo aiutarti a creare prompt personalizzati e strategie AI su misura per il tuo business.

Richiedi Consulenza Gratuita