Skip to navigation

Simulations and credits

How simulated calls work, how they're charged, and how to get reliable results.
View as Markdown

Experimental, in beta. Raya’s MCP server is new and may change. For feedback, suggestions or problems, email support@litwizlabs.ai.

How a simulated call works

A simulated call runs your agent exactly as a real call would: the same prompt (or a draft you’re testing), tools, knowledge base, languages and model. Your assistant plays the caller, one line at a time, and answers the agent’s tool calls.

  • Drafts never touch the live agent. A draft is sent with the simulated call only. To apply it, you paste the text into the agent in the dashboard.
  • Tools are mocked by default. Your assistant makes up realistic tool results. Ask for live tool calls only when you want your real endpoints called.
  • Replays use the real call’s data. Replaying a call reuses its call data (agent_args), call type and time, and sends the caller’s lines in order.
  • Turns can be slower than a real call. Simulations aren’t real time: a turn can take up to about a minute. Your assistant waits for each reply.
  • The knowledge base is the one in the portal. Upload any new chunks before testing a prompt that relies on them.

Credits

Simulated calls are charged in credits, once per simulated call when it ends, at 2× the per-token rate of the LLM option it uses. A short simulated call typically costs a fraction of a credit; a plan of a few scenarios run three times each usually costs a few credits. Live tool calls aren’t billed.

  • Estimate first. Your assistant estimates the whole plan before running anything and waits for your go-ahead. Nothing is charged for an estimate.
  • Running cost. Every turn shows the credits used so far.
  • The final charge. When a simulated call ends, your assistant shows what it cost, how it was paid, and how much is left.

Simulation credits are used first

Raya can add simulation credits to your account: a monthly allowance, or a top-up with its own expiry. Every simulated call spends them before your normal balance, starting with the ones that expire soonest. Only what’s left over comes from your balance.

If you have no simulation credits and your balance has run out, or the account is restricted, simulations are paused. Email support@litwizlabs.ai to recharge.

Best practices

Point the assistant at calls that went wrong, or at a complaint you’ve heard, before asking for changes.

Each scenario needs one situation and a clear pass condition, written down before it runs. Fix the prompt, not the test.

Voice agents vary between runs; one good run proves little.

Test a single fix against the current prompt, on the same scenarios, so you know what made the difference.

Each LLM option has a prompt size limit (8,000 tokens unless agreed otherwise). If a prompt is over, move FAQs, policies, catalogs and long lists to the knowledge base before cutting behavior.

Read the report and the before and after of the changed sections, apply the new text in the dashboard, then watch the next few real calls.

Name each key, and revoke it in the Keys table when it’s no longer used.

Files your assistant saves

If your assistant can write files, it keeps a record you can open, as Markdown in your workspace under raya-sims/<agent>/<date>-<run>/:

FileContains
plan.mdThe scenarios, their pass conditions and the cost estimate you approved
results.mdEvery simulated call: scenario, verdict, reason, credits
report.mdFindings, the before and after of changed sections, scores, credits used and left
prompt.mdThe final prompt, ready to paste
kb-chunks/One file per knowledge base chunk, ready to export to PDF and upload