> For the complete documentation index, see [llms.txt](https://documentation.virtuedeep.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.virtuedeep.tech/guides/using-the-portal/creating-interaction-channels.md).

# Creating interaction channels

Learn how to declare interaction channels using the Portal.

An interaction channel is a declared route between your solution and the world. Channels come in two directions:

| Direction  | What it is                                                                                                 |
| ---------- | ---------------------------------------------------------------------------------------------------------- |
| **Input**  | A channel that sends data *to* Sentio — a camera, a microphone, a button in your app, a sensor reading.    |
| **Output** | A channel that carries data *from* Sentio back out — a speaker, a screen, an API call into another system. |

{% hint style="info" %}
An output channel now carries an identity of its own, so the consumer on the other end can tell which output it is receiving. It also declares which formats it supports, and a logic output will only deliver actions of a matching type through it. See [Migrating to the new model](https://documentation.virtuedeep.tech/whats-new/migrating-to-the-new-model.md).
{% endhint %}

Take a solution that plays a personalised greeting on a speaker when someone arrives. The input channel is whatever notices the arrival — a camera doing facial recognition, a microphone, a tap in a mobile app. The output channel is the speaker.

For the concepts, see [Interaction channels](https://documentation.virtuedeep.tech/affective-computing-by-virtue/designing-solutions-powered-by-affective-computing/understanding-project-components/interaction-channels.md).

## Where channels live

In the left sidebar, go to **Developers Hub → Interaction Channels**. Two areas sit there:

<figure><img src="https://2595582246-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvj8sRVTP47RXCgM8y0Lm%2Fuploads%2Fgit-blob-4155df6b0a3146f20c7f2374579d9668b6182c73%2FPortal%20-%20interaction%20channels%201.png?alt=media" alt=""><figcaption><p>The channel list</p></figcaption></figure>

| Area                   | What it holds                             |
| ---------------------- | ----------------------------------------- |
| **Channel Definition** | The input and output channels themselves. |
| **Channel Categories** | The categories you organise them under.   |

The channel list shows each channel's name, alias, category and format type, and lets you edit, archive, clone, view its QR code, or pause it.

## Declaring a channel

1. Go to **Developers Hub → Interaction Channels → Channel Definition** and click **+ Create New**.
2. Choose the direction.

<figure><img src="https://2595582246-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvj8sRVTP47RXCgM8y0Lm%2Fuploads%2Fgit-blob-e9573f13cac0afc1747db754a8a1828d6fe834f3%2FPortal%20-%20interaction%20channels%202.png?alt=media" alt=""><figcaption><p>Choosing input or output</p></figcaption></figure>

### Input channels

<figure><img src="https://2595582246-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvj8sRVTP47RXCgM8y0Lm%2Fuploads%2Fgit-blob-fbe1b29eec0afcffea9cf45ae850dc1f0fe66789%2FPortal%20-%20interaction%20channels%203.png?alt=media" alt=""><figcaption><p>Declaring an input channel</p></figcaption></figure>

| Field                        | Description                                                                                                  |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------ |
| **Alias**                    | Your internal reference for the channel, for example *CCTV entrance* or *QR room 1*.                         |
| **Technical Name**           | Identifies the specific channel in your solution architecture — a device IP or address, for example.         |
| **Category**                 | The category the channel belongs to. Click **Add a new Category** if the one you need does not exist yet.    |
| **Supported Channel Format** | Shown for information. You integrate the API so that the data format your category expects is what you send. |

### Output channels

<figure><img src="https://2595582246-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvj8sRVTP47RXCgM8y0Lm%2Fuploads%2Fgit-blob-08b59b6ad0bbdfd73e43011ec4aa3e453e302f40%2FPortal%20-%20interaction%20channels%204.png?alt=media" alt=""><figcaption><p>Declaring an output channel</p></figcaption></figure>

| Field                        | Description                                                                                                                                                             |
| ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Alias**                    | Your internal reference for the channel.                                                                                                                                |
| **Technical Name**           | The identity the consumer reads to recognise this output.                                                                                                               |
| **Category**                 | The category the channel belongs to. Output channels connect with the **Environmental** category only.                                                                  |
| **Supported Channel Format** | Which kinds of action this output can deliver: **Interactions**, **Media**, **Triggered Action**. A logic output delivers only actions whose type the channel supports. |

Click **Save**.

## Organising channels into categories

Categories keep the channel list manageable and decide which data formats a channel accepts.

<figure><img src="https://2595582246-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvj8sRVTP47RXCgM8y0Lm%2Fuploads%2Fgit-blob-80358a5271ec6f6e281987afad0a5381a649f59f%2FPortal%20-%20interaction%20channels%205.png?alt=media" alt=""><figcaption><p>Channel categories</p></figcaption></figure>

Each category carries a **Category Name**, a **Sub-category** and an **Entity Name**. Go to **Developers Hub → Interaction Channels → Channel Categories** and click **+ Create New** to add one, or use **Add a new Category** while declaring a channel.

***

### Related documentation

{% content-ref url="/pages/3hn2FQyL2jNxxOtCMtIa" %}
[Working with interaction channels](https://documentation.virtuedeep.tech/guides/using-the-public-apis/working-with-interaction-channels.md)
{% endcontent-ref %}
