> 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/feeding-actions-and-attributes.md).

# Feeding actions and attributes

Learn how to feed content into your solution and how to organise it with attributes, using the Portal.

When a solution runs, Affective Computing (powered by Virtue) delivers **actions** at the moments your logics call for them. An action might be a line of speech, an image, a sound, or a call that trips something in the physical world.

An **attribute** is how you group those actions. One attribute holds actions of several types — a Media file, an Interaction line, a Triggered Action — and a logic output picks the attribute plus the type it wants, so only actions of that type are delivered. Grouping four differently worded versions of the same question under one attribute lets the solution vary its phrasing without you writing four logics.

{% hint style="info" %}
Attributes used to be split into three separate kinds — Feeding Content, Interaction, and Triggered Action. They are now a single kind of thing. See [Migrating to the new model](https://documentation.virtuedeep.tech/whats-new/migrating-to-the-new-model.md).
{% endhint %}

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

## Before you start

Feeding requires a language model connected to your tenant. In the Portal, go to **Developers Hub → Third-party Connections → Language Models (LM)** and either connect your own provider (AWS Bedrock, for example) or pick one of the open-source models offered. The feed wizard will tell you whether this is done.

## Choosing what to feed

In the left sidebar, click **New Feed**, then choose the type of action you are feeding.

<figure><img src="https://2595582246-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvj8sRVTP47RXCgM8y0Lm%2Fuploads%2Fgit-blob-0dd3a1357c063e53cffe58f32caa87eb3461683d%2FPortal%20-%20feeding%20actions%201.png?alt=media" alt=""><figcaption><p>Choosing the type of action to feed</p></figcaption></figure>

| Type                  | What it feeds                                                    |
| --------------------- | ---------------------------------------------------------------- |
| **Interactions**      | Language the model will use — content and specific interactions. |
| **Media**             | Sound, music, image and video files.                             |
| **Triggered Actions** | API-based events, in the digital and the physical world.         |

## Feeding interactions

1. Click **New Feed → Interactions**. The first step confirms your language model is connected.

<figure><img src="https://2595582246-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvj8sRVTP47RXCgM8y0Lm%2Fuploads%2Fgit-blob-ff799e29dea6f0eb53f6d3226de35f67b4523eba%2FPortal%20-%20feeding%20actions%202.png?alt=media" alt=""><figcaption><p>Step 1 confirms the language model is connected</p></figcaption></figure>

2. In step 2, choose how you want to feed:

| Option                 | What it does                                                              |
| ---------------------- | ------------------------------------------------------------------------- |
| **Content Import**     | Upload a PDF and let the platform extract the content into feeds for you. |
| **Manual Feed Option** | Type a single piece of content yourself.                                  |

3. For a manual feed, fill in the form.

<figure><img src="https://2595582246-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvj8sRVTP47RXCgM8y0Lm%2Fuploads%2Fgit-blob-6db01023c43f8f9ca2a696f89a02844fc129a4b5%2FPortal%20-%20feeding%20actions%203.png?alt=media" alt=""><figcaption><p>The manual feed form</p></figcaption></figure>

| Field                                        | Description                                                              | How to configure it                                                                                                                                        |
| -------------------------------------------- | ------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Alias**                                    | Your internal reference for this feed.                                   | (Mandatory) Enter a name.                                                                                                                                  |
| **Confidentiality → Keep it Secret**         | Keeps the content available to your tenant only, never to other clients. | (Optional) Select the checkbox. See [Keep it secret](https://documentation.virtuedeep.tech/additional-resources/privacy-and-compliance/keep-it-secret.md). |
| **Create a new Attribute Name**              | Creates a new attribute and files this content under it.                 | Enter a name, **or** use the field below instead.                                                                                                          |
| **Select an already created Attribute Name** | Files this content under an attribute that already exists.               | Select one.                                                                                                                                                |
| **Interaction Content**                      | The content itself.                                                      | (Mandatory) Enter up to 500 characters.                                                                                                                    |

<figure><img src="https://2595582246-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvj8sRVTP47RXCgM8y0Lm%2Fuploads%2Fgit-blob-9035b03ab3d9a445703dabcf127a21b6fd3d0e4c%2FPortal%20-%20feeding%20actions%204.png?alt=media" alt=""><figcaption><p>A completed manual feed</p></figcaption></figure>

4. Click **Save**.

## Feeding media

1. Click **New Feed → Media**, then choose the category: **Sound**, **Music**, **Image** or **Video**. You can also choose **Connect and Import from your Database** to pull media in bulk.

<figure><img src="https://2595582246-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvj8sRVTP47RXCgM8y0Lm%2Fuploads%2Fgit-blob-05d4cde9b92e88141628b413043122f08145920d%2FPortal%20-%20feeding%20actions%205.png?alt=media" alt=""><figcaption><p>Choosing a media category</p></figcaption></figure>

2. Give the upload an alias, decide whether to keep it secret, and attach it to a new or existing attribute. Then drop your files in.

<figure><img src="https://2595582246-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvj8sRVTP47RXCgM8y0Lm%2Fuploads%2Fgit-blob-17c8b72e31ef8b36001e834b132c0c716c5462ce%2FPortal%20-%20feeding%20actions%206.png?alt=media" alt=""><figcaption><p>Uploading media files against an attribute</p></figcaption></figure>

The attribute you choose applies to every file in the upload. Accepted formats and the size limit are shown beneath the drop zone; for images that is .jpg, .jpeg, .png, .gif, .bmp, .tiff and .webp, up to 2 MB per file.

## Feeding triggered actions

1. Click **New Feed → Triggered Actions**, then choose how the action is triggered.

<figure><img src="https://2595582246-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvj8sRVTP47RXCgM8y0Lm%2Fuploads%2Fgit-blob-3aed11e15543ddc517684f762b8c3672aefec0e1%2FPortal%20-%20feeding%20actions%207.png?alt=media" alt=""><figcaption><p>Choosing how the action is triggered</p></figcaption></figure>

| Category  | Fires when                                          |
| --------- | --------------------------------------------------- |
| **Value** | The declared value is matched exactly.              |
| **Range** | The incoming reading falls inside a declared range. |

2. Declare the value and give the action an alias.

<figure><img src="https://2595582246-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvj8sRVTP47RXCgM8y0Lm%2Fuploads%2Fgit-blob-e20970b59c40d74ddb8c2303f41f539f1c8f63c3%2FPortal%20-%20feeding%20actions%208.png?alt=media" alt=""><figcaption><p>Declaring a value-triggered action</p></figcaption></figure>

| Field              | Description                                                   |
| ------------------ | ------------------------------------------------------------- |
| **Value**          | The number or word that triggers the action in your solution. |
| **Alias**          | Your internal reference for the action.                       |
| **Keep it Secret** | Restricts the action to your tenant.                          |
| **Attribute**      | A new or existing attribute to file the action under.         |

3. Click **Save**.

A triggered action is delivered through an interaction channel output, so the channel has to exist first. See [Creating interaction channels](https://documentation.virtuedeep.tech/guides/using-the-portal/creating-interaction-channels.md).

## Reviewing your feeds

Go to **My Feeds → Feed Management** to see everything you have fed, with its source type, its type of feed, and its current status.

<figure><img src="https://2595582246-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvj8sRVTP47RXCgM8y0Lm%2Fuploads%2Fgit-blob-5e90fe83d7b59149e0c08d7cba0ceca961930676%2FPortal%20-%20feeding%20actions%209.png?alt=media" alt=""><figcaption><p>The feed list</p></figcaption></figure>

A feed imported or auto-extracted arrives as **Validating**. From the Actions column you can pause a feed, preview it, edit it, or delete it.

## Managing attributes

Go to **My Feeds → Attributes Management** for the list of attributes in your account, who created each one, and how many feeds sit under it.

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

To create an attribute on its own, without feeding anything into it yet, click **+ Create New** and give it a name.

<figure><img src="https://2595582246-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvj8sRVTP47RXCgM8y0Lm%2Fuploads%2Fgit-blob-99d11986da916edc727fd5eb5e8381c66874a14e%2FPortal%20-%20feeding%20attributes%202.png?alt=media" alt=""><figcaption><p>Creating an attribute</p></figcaption></figure>

To rename one, click the pencil in its row.

<figure><img src="https://2595582246-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvj8sRVTP47RXCgM8y0Lm%2Fuploads%2Fgit-blob-c4214e1ab80a9e60b3d9f0c802638214643e03f0%2FPortal%20-%20feeding%20attributes%203.png?alt=media" alt=""><figcaption><p>Renaming an attribute</p></figcaption></figure>

{% hint style="warning" %}
Attribute names must be unique within a tenant. Deleting an attribute soft-deletes every action grouped under it, across all three types.
{% endhint %}

***

### Related documentation

{% content-ref url="/pages/FUx2jB0tZ6mGCqddmii9" %}
[Action and attribute feeding](https://documentation.virtuedeep.tech/affective-computing-by-virtue/about-our-framework/edaa-tm-features/action-and-attribute-feeding.md)
{% endcontent-ref %}

{% content-ref url="/pages/C4KdhIBymvPT599nNtLz" %}
[Working with attributes](https://documentation.virtuedeep.tech/guides/using-the-public-apis/working-with-actions-and-attributes/working-with-attributes.md)
{% endcontent-ref %}
