# Context

Command contexts allow a vocal command to trigger the display of different cards depending on the detection context. You can create contexts to associate with vocal commands.

## How to create a context?

In a project, go to "**Vocal commands**" and at the bottom of the page you have the button "<mark style="background-color:orange;">**Create a context**</mark>"

<figure><img src="https://2960584979-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwxFhwJcQn16jKJAsOo4Q%2Fuploads%2FBRSb6LF5wtbkVcQI9QAk%2Fimage.png?alt=media&#x26;token=01a18543-7c82-4b50-b319-705cfc8eadb6" alt=""><figcaption></figcaption></figure>

Give it a name and validate.

## How to complete a context?

Choose (or create) each vocal command that will be part of the context:

* ***One or more triggers.*** They will, once pronounced, trigger the context. Subsequently, after pronouncing the vocal commands that are part of this context, the cards associated with this context will appear on your screen.&#x20;
* ***One or more vocal commands integrated into the context*** will trigger the display of a particular card, unlike the associated card that it can have as a base.

#### For a context trigger:

1. Go to the vocal command in question (if it does not exist you can create it).&#x20;
2. Check the box that will identify it as a trigger and choose the context that the command will trigger\
   ![](https://2960584979-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwxFhwJcQn16jKJAsOo4Q%2Fuploads%2FZtOHnmt1Q6rPFMTbW8kZ%2Fimage.png?alt=media\&token=62606644-fe79-447d-a290-41eda5bf505c)
3. A small blue arrow will then appear next to the vocal command to indicate that it is a trigger. <img src="https://2960584979-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwxFhwJcQn16jKJAsOo4Q%2Fuploads%2FAfiYR9q1fvlgtYgz3zgL%2Fimage.png?alt=media&#x26;token=8d2d9925-76d8-4c8e-a8c3-32d8e9e3fc37" alt="" data-size="line">

{% hint style="info" %} <mark style="color:blue;">It is possible to put several triggers for the same context.</mark>
{% endhint %}

{% hint style="warning" %} <mark style="color:orange;">A trigger command cannot be part of a context. It will only trigger the basic associated card (or not if it has no associated card).</mark>
{% endhint %}

#### For a command within a context

{% hint style="info" %} <mark style="color:blue;">The first feature of the out-of-context command may or may not have an associated card.</mark>
{% endhint %}

1. Go to the vocal command in question (if it does not exist you can create it).&#x20;
2. Click on "**Add a contextual display**" and fill in the fields&#x20;
   1. In what context&#x20;
   2. Which card will be triggered in this context\
      ![](https://2960584979-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwxFhwJcQn16jKJAsOo4Q%2Fuploads%2FunK717sijCupOlz5jIP3%2Fimage.png?alt=media\&token=3c50806d-b87f-479f-98eb-6386b9d09a33)
3. Save changes and voila!

{% hint style="info" %} <mark style="color:blue;">A vocal command can be part of several contexts and therefore trigger several cards depending on the context.</mark>
{% endhint %}

{% hint style="warning" %} <mark style="color:orange;">A built-in vocal command. a context with a contextualised display cannot be a trigger.</mark>
{% endhint %}
