> ## Documentation Index
> Fetch the complete documentation index at: https://docs.voiceflow.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Interaction-based examples

> See practical examples of interaction-based tests with validation rules.

# Example using `contains` validation

## Suite file

```yaml theme={null}
# suite.yaml

name: Example Suite
description: Suite used as an example
environmentName: production
# Optional: Create a new user session for each test (default: false)
# When enabled, each test will run with a fresh user session
newSessionPerTest: true
tests:
  - id: test_id
    file: ./test.yaml
```

## Test file

```yaml theme={null}
# test.yaml

name: Example test
description: These are some tests
interactions:
  - id: test_1
    user: 
      type: text
      text: hi
    agent:
      validate:
        - type: contains
          value: hello
```

<br />

```yaml theme={null}
# test.yaml

name: Example test
description: These are some tests
interactions:
  - id: test_1
    user: 
      type: text
      text: hi
    agent:
      validate:
        - type: contains
          value: hello
```
