Workflows and prompting¶
This page describes the interactive session: the welcome screen, the list models command, slash commands, and the three main workflows (Design, Code, Deploy), plus prompting tips.
Start Agent Assist¶
空のディレクトリでdr assistを実行する
dr assistは、専用の空のディレクトリからのみ実行します。 コードやその他のファイルが含まれるディレクトリでこのコマンドを実行するのは安全ではありません。 エージェントアシストのコーディングワークフローを使用すると、アシスタントはDataRobot Agent Application Templateのクローンを現在のディレクトリに作成します。 この操作によって既存のファイルが上書きされたり競合が発生したりする可能性があり、既存のプロジェクトが損なわれ、アシスタントの出力精度が低下する恐れがあります。 dr assistを実行する前に、専用のディレクトリがない場合は、ディレクトリを作成してそこでターミナルを開きます(たとえば、mkdir my-agent && cd my-agentを実行してから、dr assistを実行します)。
まず、dr assistコマンドを実行します。
dr assist
When DataRobot Agent Assist is started, the welcome screen shows the welcome message, three options, and the help footer:
$ dr assist
🔌 Running plugin: assist
█████████
█████ ███████ ████████ ██
█████████ ██ ███ ██ ██ ██ ██ ██
█████ ██ ██ █████ █████ █████ ██ ██ █████ ███████ █████ █████
██████████████ ██ ███ ██ ██ ██ █████████ ██ ██ ██ ██ ██ ██ ██
█████ ██ ██ ███████ ██ ███████ ██ ██ ██ ██ ██ ██ ██ ██ ██
█████████ ██ ████ ██ ██ ██ ██ ██ ██ ███ ██ ██ ██ ██ ██ ██ ██
█████ ████████ ████████ ████ ████████ ██ ███ █████ ████████ █████ ████
█████████
Welcome! I help you design, code, and deploy AI agents.
What would you like to do?
1. Design an AI agent → Describe your idea
2. Code an AI agent → Load and implement an existing agent_spec.md
3. Deploy an AI agent → Deploy an implemented agent to DataRobot
Type /help for commands | /quit to exit
Input is collected at the $ prompt. Type a number (1, 2, or 3) to choose a category, or, describe the goal in natural language. If the first instruction is one of those numbers, the assistant treats it as referring to the predefined categories.
Built-in commands
Type list models at the $ prompt (no slash) to see the LLM Gateway model catalog, the model your session uses, and whether to switch models or continue. See the Environment and commands reference for details. Slash commands use the / prefix; for the full list and descriptions, see Slash commands. Typing / shows available slash commands and suggests /help for details. The /quit command exits the session.
Design an AI agent¶
Use this workflow when starting a new agent idea. The assistant asks clarifying questions about the agent’s purpose, capabilities, and requirements—including business or domain concerns (for example escalation rules, user scenarios, or tone) as well as technical details. It suggests tools and models, and produces an agent specification. The specification is displayed and written to agent_spec.md in the current directory (YAML format). A complete spec typically captures what you need to implement and review before code exists: the agent’s behavior and prompts, model choice, tool definitions, and how authentication and integrations should work, so both developers and stakeholders can align on intent. For field definitions and examples, see the Agent specification reference.
The specification can be refined over several iterations. The assistant limits clarifying questions to about two rounds before proposing an initial draft, then iterates on that draft with you. When choosing a model, it recommends a capable default from your LLM Gateway catalog unless you specify cost or other constraints. Type list models at any time to browse what is available in your organization.
Before simulation or coding, the assistant asks whether the Agentic Starter template’s default chat UI is sufficient or you need a custom frontend (for example a dashboard, data visualization, or multi-page app). That choice is recorded in the frontend section of agent_spec.md. 仕様ができたら、コーディングの前にエージェントをシミュレーションして設計を検証できます。
$ I want to create a customer support agent for an e-commerce site
Agent Assist: I'll help you design that! I can ask some questions to understand your requirements better. What specific customer issues should this agent handle?
User: $ It should handle order status, returns, and product questions
DataRobot Agent Assist: Great! What data sources will it need access to?
User: $ Our order database and product catalog
DataRobot Agent Assist: Perfect. Should it escalate complex issues to humans?
User: $ Yes, escalate billing and refund requests
DataRobot Agent Assist: I'll create a specification for your customer support agent...
[Creates and displays agent_spec.md, saves to file]
エージェントのシミュレーション¶
agent_spec.mdができたら、実装の前にエージェントのシミュレーションができます。 Simulation is sometimes called a dress rehearsal: you try the design as an end user would, without writing implementation code. Simulation is for design validation only—no real tool code runs, and no external services are called.
- 動作:モデル(LLM)は仕様を使用して、どのツールをどのような引数で呼び出すかを決定します。 モデルがツール呼び出しをリクエストした際、Agent Assistはツールの実装を実行したり、DataRobotのデプロイ、データセット、その他のAPIを呼び出したりすることはありません。 代わりに、LLMを使用して、ツールの記述された入力と出力に一致するシミュレーション済みの戻り値を生成します。 You see which tools were selected, the arguments passed, and the simulated results—so you can judge whether the design makes sense.
- 目的:実際のツールコードの実装に時間を費やす前に、適切なツールが存在すること、入出力構造が妥当であること、および選択されたモデルがタスクに対して適切なツールを呼び出す傾向があることを検証します。
- 対象外:シミュレーションでは、実際のDataRobotのデプロイを呼び出したり、実際のデータセットを読み取ったり、実際のAPIにアクセスしたりすることはありません。 ライブデータとデプロイを使用するには、エージェントを実装し、コードまたはデプロイワークフローで実行します。
まず、アシスタントにエージェントのシミュレーションを依頼します(例:「エージェントをシミュレーションして」や「設計を試させて」)。 During the session:
- Act as the end user—Type messages the way a real user would (for example order-status questions, research queries, or edge cases you care about).
- Try specific scenarios—Describe particular requests or failure modes to see whether the model picks the right tools and arguments.
- Capture design notes—If something in the prompt, tools, or examples should change, tell the assistant; it can update
agent_spec.mdbased on what you learn. - End and review—When you are done, ask the assistant to wrap up simulation. It can summarize how the agent performed and suggest concrete changes to the spec (system prompt, tools, model, or examples).
Type /quit to exit the session when you are finished.
Code an AI agent¶
Use this workflow when the agent_spec.md file already exists and is ready to implement. The assistant loads the specification and—if the template repository is not yet present—clones the DataRobot Agentic Starter repository into your working directory. It then follows the template’s AGENTS.md for setup and implementation. The assistant can run shell commands (with approval), edit files, and manage multi-step work with tools. It suggests testing locally and deploying when the implementation is ready.
Empty working directory
Agent Assist clones the template into the current directory. If the directory already contains files other than agent_spec.md, the assistant warns you before proceeding so existing work is not overwritten.
When preparing the template for the first time, the assistant typically:
- Verifies dependencies—Runs
dr dependencies checkso required tools (Git, Node, Task, Pulumi, and others) meet minimum versions. See Prerequisite tools. - Asks for an agentic framework—You choose one of the supported frameworks: LangGraph, CrewAI, LlamaIndex, NeMo Agent Toolkit (NAT), or Base (minimal scaffold). The choice is saved in the template configuration and determines which example patterns the assistant follows.
- Initializes the project—Runs
dr start(with your approval) to configure credentials, ports, and LLM settings for the Agentic Starter template. - Implements from the spec—Adapts template code to match
agent_spec.md(tools, prompts, and frontend requirements). Tools that need external API access use the authentication described in the spec; you configure secrets in the template as described inAGENTS.md.
Windows
Agent Assist runs on macOS and Linux. On Windows, use WSL or a DataRobot codespace for the Code workflow. See System requirements.
The Agentic Starter template is structured for production-style agent applications (for example, an MCP server surface for tools, guided configuration through dr start, and deployment-oriented tasks). For details on what the template includes out of the box, see the Agentic application template overview.
After implementation, test the agent locally using the commands in the template’s AGENTS.md. Run those commands in a separate terminal in the project directory. When you are ready for production, continue with Deploy an AI agent.
User: $ Load my existing agent specification and add a tool for inventory checking
Agent Assist: I found your agent_spec.md. I can see it's a customer support agent.
Let me add an inventory checking tool...
[Reads current spec and adds the requested tool]
Deploy an AI agent¶
Use this workflow when an implemented agent is ready to deploy to DataRobot. The assistant reads the deployment instructions from the template’s AGENTS.md and guides users through the steps. It does not run deployment commands; it indicates what to run (in a separate terminal). For interactive or long-running steps (such as dr start), the assistant uses the appropriate tools as defined in the codebase.
User: $ Help me deploy the agent I implemented
Agent Assist: I'll read the deployment section of AGENTS.md and walk you through the steps...
[Displays deployment commands and instructions]
Interact with the DataRobot CLI¶
DataRobot Agent Assist runs certain DataRobot CLI (dr) commands on your behalf and can run other shell commands (including additional dr commands) with your approval.
- At startup: The assistant runs
dr dependencies checkto verify that required tools (Python, Node, Git, Task, Pulumi, etc.) are installed and meet minimum versions. See Prerequisites and installation. - Code workflow: When you use the assistant to clone and prepare the template (for example, "Code an AI agent" or "prepare to code"), it runs
dr startin the template directory to initialize the DataRobot project. You are prompted to approve before the command runs. - Any workflow: The assistant can run shell commands—including
drsubcommands—after you approve. It shows the command and description, then prompts for approval before executing.
For full DataRobot CLI usage (authorization, deployment, and other commands), see the DataRobot CLI documentation.
Prompting considerations¶
Consider the following guidelines to get better results from the assistant:
- Be specific: "Create a customer support agent that handles order inquiries and escalates billing issues" rather than "Create an agent".
- Provide context: "I'm building a travel booking agent and need help with the flight search API integration" rather than "Help me with my code".
- Ask for explanations: "Explain why this code isn't working and show me how to fix it" rather than "Fix this".
- Iterate: "This is good, but can you make it handle edge cases like cancelled orders?" rather than accepting the first solution.