You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/tests/agent-to-agent-tests.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -150,11 +150,13 @@ Configures a Voiceflow agent to act as the tester instead of using OpenAI. When
150
150
151
151
-`environmentName`: The environment name of the tester Voiceflow agent (e.g., "production", "development")
152
152
-`apiKey`: The API key for the tester Voiceflow agent (format: `VF.DM.xxxxx.xxxxx`)
153
+
-`variables` (Optional): A map of variables to set in the tester agent after the launch event. These variables will be set using the [Voiceflow State Variables API](https://docs.voiceflow.com/reference/updatestatevariables-1) after launching the tester agent.
153
154
154
155
**Important Notes:**
155
156
156
157
- When using Voiceflow agent testing, the `persona` and `userInformation` properties are ignored
157
158
- The tester agent should be pre-configured with appropriate conversation logic and any required user data
159
+
- Variables are set immediately after the launch event, allowing you to initialize the tester agent's state for each test
158
160
- OpenAI is still used for goal evaluation even when using Voiceflow agent testing
159
161
160
162
**Example:**
@@ -181,6 +183,12 @@ agent:
181
183
voiceflowAgentTesterConfig:
182
184
environmentName: "production"
183
185
apiKey: "VF.DM.your-tester-agent-key"
186
+
# Optional: Set variables in the tester agent
187
+
variables:
188
+
user_name: "John Doe"
189
+
user_id: "12345"
190
+
booking_type: "hotel"
191
+
check_in_date: "2026-02-15"
184
192
```
185
193
186
194
## Choosing Between Testing Methods
@@ -288,7 +296,8 @@ tests:
288
296
✅ **Best Practices:**
289
297
290
298
- Design the tester agent with clear conversation flows
291
-
- Include appropriate user information within the agent
299
+
- Include appropriate user information within the agent or use the `variables` property to set dynamic values
300
+
- Use the `variables` property to initialize agent state for different test scenarios
292
301
- Test the tester agent independently before using in tests
293
302
- Use meaningful environment names and secure API keys
0 commit comments