What is the Playground?
The Playground lets you test prompts, models, settings, and Tools in the dashboard before you add them to a Flow or Agent. When a configuration works, save it as a Flow or Agent.
How the Playground works
The Playground has a configuration panel and a chat panel. In the configuration panel, select a model, write a system prompt, enter values for variables, and select Tools. In the chat panel, send messages. Each message uses the current configuration and the earlier messages in the conversation.
Each message is a real model call. It uses credits or your provider key, the same as a Flow run. For more information, see Platform keys vs. bring your own key (BYOK). Selected Tools also run for real, so test Tools that change external systems, such as Tools that send email, with test data.
The Playground doesn’t save your work. If you leave or reload the page, the configuration and the conversation are cleared. To keep a configuration, save it as a Flow or Agent. The Playground can’t open an existing Flow or Agent, so each session starts empty.
Use the Playground to:
- Refine prompts: Change wording, instructions, and output formats.
- Compare models: Send the same prompt to different models and compare the responses.
- Tune settings: Adjust temperature, response length, response format, and reasoning.
- Test Tools: Select Tools and review the tool calls in the conversation. For more information, see What are Tools?.
- Prepare a Flow or Agent: Test a configuration before you save it.
Example
Dana is building a customer support chatbot for refund requests. Before Dana adds it to a Flow, Dana tests the configuration in the Playground:
- Dana selects
claude-haiku-4-5and writes a system prompt that states the refund policy. - Dana tests edge cases such as angry customers, missing order numbers, and requests outside the return window.
- Dana selects
gemini-3.8-flashand sends the same scenarios. - To reduce variation between replies, Dana clicks the Advanced settings icon next to the Model field, turns off Use model default under Temperature, and sets the slider to
0.3. - After the prompt produces acceptable replies, Dana clicks Save as Flow.
Test a configuration
To test a configuration, follow these steps:
- In the sidebar, click Playground. After the model list loads, the Playground selects your account’s default model.
- Optional: In the Model field, select a different model. The list shows the models that are enabled for your account. To enable more models, select Manage models at the end of the list. For more information, see Managing AI models.
- In the System Prompt field, enter the instructions for the model.
- Optional: Add variables in the
{{VARIABLE_NAME}}format, such as{{CUSTOMER_NAME}}. For each variable, the Playground adds a field under Variables. Enter a value in each field. The Playground substitutes the values into the prompt. It doesn’t create fields for system variables, which start with_, or for names that contain a period. - Optional: To change the model settings, click the Advanced settings icon next to the Model field. The Advanced Settings panel opens. For more information, see Model settings.
- Optional: In the Tools field, select the Tools that you want to test. In the selection dialog, you can also configure each selected Tool. These Tool settings apply only in the Playground.
- In the chat panel, enter a message and send it.
- Review the response. To test a multi-turn conversation, send more messages. To start over, click Clear.
On desktop, resize the panels with the divider. On mobile, open the chat panel from the header.
The chat panel has three tabs:
- Chat: Shows the conversation.
- Payload: Shows the API request that the Playground sends for the current configuration. For more information, see Run the configuration from your code.
- Events: Shows the streamed events for each response. For more information, see Review the streamed events.
Model settings
The Advanced Settings panel has the following options. Response Format, Temperature, and Max output tokens each start with Use model default turned on. To set a value, turn off Use model default.
- Response Format: Select Markdown, JSON, HTML, or XML.
- Temperature: Set a value from
0to1. Lower values reduce variation, and higher values increase variation. Models that don’t support temperature ignore this setting. - Max output tokens: Set a response length from
1to128,000. - Reasoning: Use the model default, enable reasoning, or disable reasoning. This option appears only for models that support it.
Save your configuration
The Save as Agent and Save as Flow buttons are at the bottom of the configuration panel. They are available after you select a model.
- Click a save button:
- Save as Flow creates a Flow with one Prompt step named Playground Prompt.
- Save as Agent creates an Agent.
- In the dialog, enter a name. Optional: Enter a description.
- Click Create flow or Create agent. The new Flow or Agent opens.
The save action copies the Model, System Prompt, Temperature, Max output tokens, and the Tools that you selected. It doesn’t copy the Response Format, the Reasoning selection, the settings that you entered for each Tool, or the variable values.
The saved system prompt keeps its {{VARIABLE_NAME}} placeholders. Replace them in the saved prompt, or supply the values when the Flow runs. For more information, see Flow variables and templates.
Run the configuration from your code
The Payload tab shows the request body that the chat sends to POST /v1/dispatch. Send the same body with an API key to run the configuration from your own code without saving a Flow or Agent.
The Payload tab has two tabs:
- Flow: A request with an inline Flow that has one Prompt step. The chat sends this request, so the tab label is Flow · active.
- Agent: The same configuration as an inline Agent. This request carries only the model, the system prompt, the temperature, and the Tools.
The request body updates as you change the configuration and send messages:
- The system prompt contains the variable values, not the
{{VARIABLE_NAME}}placeholders. - The
messagesarray holds the current conversation. It is empty until you send a message. - The Flow request includes the Response Format, the Reasoning selection, and the settings that you entered for each Tool.
options.recordModeisvirtualandoptions.storeResultsisfalse, so the run doesn’t save a Record.options.debugModefollows the execution mode menu in the chat panel. It istruein debug mode,falsein user mode, and absent in production mode.
To copy the request, follow these steps:
- In the chat panel, click the execution mode menu. The menu shows Debug mode by default.
- Select Run as production. The request body no longer contains
debugMode, which matches a request from your own code. - Click the Payload tab.
- Click the Flow tab.
- Click Copy. The request body is copied to your clipboard.
The following cURL command sends a copied Flow request. The messages array contains one user message:
Replace YOUR_API_KEY with a Runtype API key. For more information, see Managing API keys.
To continue a conversation, send the earlier user and assistant messages in the messages array, followed by the new user message. For all request fields, see Execute a flow or agent.
Review the streamed events
The Events tab lists the server-sent events of each response in order. Each event has a label for its type, such as step_start, text_delta, and execution_complete. When options.streamResponse is true, your code receives the same event types, so use this tab to see which events your code must handle.
The execution mode menu controls the detail in the events. In debug mode, the events include tool inputs, prompts, and costs. In user mode, the events leave out prompts, model settings, and costs.
Troubleshooting
- The Model list shows “No models available”: No model is enabled for your account. Enable a model in Managing AI models.
- A “Failed to load available models” message appears: The dashboard couldn’t load the model list. Reload the page.
- The chat panel shows “Select a model to start chatting”: Select a model in the Model field.
- The Tools field shows “Select a model first”: Select a model before you select Tools.
- A “Failed to create flow” or “Failed to create agent” message appears: The configuration wasn’t saved. Your Playground configuration stays on the page, so try the save again.
Next steps
- Using prompt steps: edit the Prompt step that Save as Flow creates.
- Creating and editing flows: add more steps to a saved Flow.
- Creating and configuring Agents: configure an Agent that you saved from the Playground.
- What are Evals?: compare configurations against the same test inputs.
- Run flows and agents with dispatch: run a Flow or Agent through the dispatch API, with streaming and async execution.