Create an environment
Creates an environment for the project: a noise bed and the level it plays at. Reference it by id when setting a customer flow variant’s environment. Roark’s curated presets always play at the default level, so this is how a project gets the same bed louder or quieter.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Input for creating an environment
Display name, shown wherever a flow variant references the environment
1"Busy call centre"
The noise bed played underneath the simulated caller. NONE plays nothing.
NONE, AIRPORT, CHILDREN_PLAYING, CITY, COFFEE_SHOP, DRIVING, OFFICE, THUNDERSTORM "OFFICE"
Optional note on when to use this environment
"Open-plan office at peak hours"
How loud the bed plays, as a gain from 0 (silent) to 1 (as loud as the caller). Defaults to 0.1, which sits well under the caller. Ignored on Vapi endpoints, which have no level control.
0 <= x <= 10.3
Response
The created environment
A simulation environment: the ambient conditions a customer flow variant runs under. The list includes both your own and the ones Roark curates for every project.