You can make the assistant start speaking when it detects specific patterns in what the user says. This is done using custom rules combined with timeouts to decide when the assistant should listen and when it should respond.


How Rules are Checked (Precedence)

  1. Custom Rules Come First – If a custom rule matches, it takes priority over everything else, like default settings or smart endpointing.
  2. First Match Wins – The rules are checked in order. Once a rule matches, it stops looking at the others.

Timeout Rules (How Long to Wait)

The timeoutSeconds setting controls how long the assistant waits before deciding the user has finished speaking.

How it Works:


Types of Custom Rules

1. Assistant Rules – Look at what the assistant just said.

Example: Start early if asking a yes/no question.

{
  type: 'assistant',
  regex: 'yes|no',
  timeoutSeconds: 0.5,
}

Why? Works for quick answers like "yes" or "no" without waiting too long.