# Features

A Feature is one thing the AI does for your app. It holds everything about the call that is not your app's data: the model, the instructions and the settings. Your app only sends the Feature's name and its input.

## Two kinds of Feature

You choose the kind when you create the Feature. It cannot be changed later.

| Kind | Your app sends | It gets back |
|---|---|---|
| **Task** | One piece of text, up to 10,000 characters: a message, a description, a question | One answer: plain text, or structured values |
| **Conversation** | The messages so far, ending with the user's, plus optional context and language | The next reply, as text, all at once or piece by piece |

### Task

One input, one answer. Use it for anything that does not need the history of a chat: suggest meals, sort a support ticket, write a product description.

A task answers in one of two formats, chosen at creation:

- **Text**: the model's answer, as it writes it.
- **Structured (from an example)**: named values your app can use directly. Paste an example of the answer you want, such as `{"title": "Pasta salad", "minutes": 20}`, and FeatWire reads the fields from it. FeatWire checks every answer against these fields before your app gets it.

### Conversation

A chat with history, such as a coach or a support assistant. Your app sends:

- `messages`: the conversation so far, oldest first. Each message is from the `user` or the `assistant`, and the last one is the user's.
- `context` (optional): what the model should know about the user, such as their level or their recent activity.
- `language` (optional): `fr` or `en`, the language to answer in.

At most 24 messages and 24,000 characters in all. **Your app keeps the history: FeatWire does not store it.** After each reply, your app adds the user's message and the reply to its history, and sends it all with the next call.

A conversation can also stream its reply, so your app shows it while it is being written. See [the API reference](/docs/api-reference#the-answer-piece-by-piece).

## The name

Your app calls the Feature by its name, such as `meal-ideas`: lowercase letters, digits and hyphens, up to 48 characters. Typing "Meal ideas" gives `meal-ideas`. It cannot be changed later.

## Models

The provider follows the model: a Feature on a Gemini model uses your project's Gemini key, one on an OpenAI model your OpenAI key. You can switch the model of a Feature in a new version, even to another provider, without touching your app.

| Provider | Model | Id your calls report |
|---|---|---|
| Gemini | Gemini 3.5 Flash-Lite | `gemini-3.5-flash-lite` |
| Gemini | Gemini 3.1 Flash-Lite | `gemini-3.1-flash-lite` |
| OpenAI | GPT-6 Luna | `gpt-6-luna` |
| OpenAI | GPT-6.1 Terra | `gpt-6.1-terra` |

## Settings

Each version of a Feature holds:

- **Model** and **Instructions**: what the model is asked to do with each request your app sends.
- **Creativity (temperature)**: from 0, focused and repeatable, to 2, more varied. Empty means the model's default.
- **Maximum answer length (tokens)**: an answer longer than this is cut short. A token is about three quarters of a word. Empty means the model's default.
- **Timeout (seconds)**: how long to wait for the model before giving up. Empty means 60 seconds.

The input and output formats are fixed when the Feature is created, and shown read-only after.

## Versions

Every time you click **Save as new version**, FeatWire keeps a new version, numbered 1, 2, 3... A version never changes once saved. If nothing changed, no version is created.

- **Edit** starts from the version that is live, and says so.
- The **Versions** tab lists every version, newest first. Click one to read what it held.
- Each call is recorded with the version that answered it: open a request in **Requests** to see it.

## Publish and go back

Your app only ever gets the **published** (live) version. Drafts are never served.

- **Publish** a version from the top of the Feature's page or from the **Versions** tab, then confirm. It reaches your app within 30 seconds.
- To **go back**, open **Versions** and click **Go back to this version** on an older one. It is the same as publishing it: one click, no new version of your app.
- Publishing needs your project's key for the version's provider. Without it, the dashboard refuses and tells you which key to add.

Before you publish, use **Test** to run what the editor holds. A test is a real call to the model and costs as much as any call.

## Stop, archive, delete

- **Stop serving** (on the live version's row): no version is live anymore. Your app gets a `feature_not_found` error (404) until you publish one again.
- **Archive this feature** (in the Danger zone at the bottom of the page): the Feature is put away and your app gets a `feature_not_found` error. **Restore** brings it back with the version that was live.
- **Delete for good** an archived Feature: all its versions go, for good. Past statistics stay, and the name becomes free again. A single version can be deleted too, if it is neither live nor the newest.
