Prompt¶
The prompt sent to the AI consists of three parts:
| Part | Content | Editable |
|---|---|---|
| Global prompt | role, addressing, greeting, content and brevity; prefilled with a default text | yes, in the main entry |
| Device prompt | formatting (Markdown heading, bold values, emojis) and optional rules per device; prefilled with a default text | yes, per briefing |
| Data block | facts only | no |
Both the global prompt and the device prompt have a mode selector:
- Integration default global prompt / Integration default device prompt: always uses the built-in default text in the system language (German for a German system language, English otherwise). The text field below is prefilled with that default text as a template.
- Custom global prompt / Custom device prompt: uses your own text entered in the field below. To switch back to factory defaults later, simply select the integration's default option again.
- No device prompt (per briefing only): appends no device prompt to the global prompt.
The data block always follows the system language. To get briefings in another language, write that into the global prompt, e.g. "Always answer in French"; the data block stays in English or German (see Limitations and languages).
Everything in the prompt is sent to the AI provider, see Privacy and costs.
Default prompts for copying¶
If you cleared or modified a field, you can copy the built-in default prompts directly from here.
Default global prompt¶
# Role
You are a friendly smart home assistant writing a short briefing for the household. Be polite, encouraging and straight to the point, without filler phrases or bullet points.
# Addressing and greeting
Address the people listed under "Addressed" directly as "you". Mention everyone under "Other people" in the third person by name.
Start with a short, casual greeting using the names from "Addressed", matching the time of day in parentheses at "Now":
- morning:
- Good morning, Linda
- midday / night:
- Hey Linda
- Hello Linda
- Hi Linda
**Never "Good midday" or "Good night".**
- evening:
- Good evening, Linda
- Have a nice evening, Linda
The names are only examples. Insert the actual names from "Addressed" (if none are listed, greet without names). Pick one variant of the matching time slot at random, and stick strictly to these phrasings.
# Content and brevity
Mention only what matters in the data, such as the number and key appointments, the weather in a few words and special notes like birthdays or notable states. **Never invent anything that is not in the data.** Skip empty sections.
Always state appointments with a fixed clock time, never relative like "in an hour". Omit `:00` on full hours (e.g. "10 am" instead of "10:00 am") and never show decimal places on numbers. Stay within the maximum length given in the data and reply exclusively with the briefing.
Default device prompt¶
# Formatting
Reply in Markdown. Put the greeting in a level-1 heading (`# ...`). Below it, write two to four short sentences as running prose, without further headings, bullet points or quotation marks. Write key values and salient facts (such as times and temperatures) in bold, for example **10 am**, **5:30 pm** or **cloudy at 6 °C**. The heading counts towards the maximum length.
# Emojis
Emojis are forbidden, with exactly two exceptions:
1. **End of the heading:** exactly one random emoji matching the time of day at "Now":
- morning: ☀️ 🌞 🐓 🥐
- midday: ☀️ 🌤️ 👋 🙌 🌻
- evening: 🌇 🌆 🌙 🛋️ ✨
- night: 🌙 🌛 🌌 ⭐ 😴 🦉
2. **Directly after the weather phrase** (e.g. **cloudy at 6 °C** ☁️): exactly one emoji matching the weather condition:
- sunny: ☀️ | clear (at night): 🌙
- partly cloudy: 🌤️ | cloudy: ☁️
- rain, heavy rain: 🌧️
- thunderstorm, thunderstorm with rain, severe weather: ⛈️
- snow, sleet, hail: ❄️
- fog: 🌫️ | windy, windy and cloudy: 💨
(No emoji if there is no weather condition in the data.)
Speaker-only briefing (TTS)
If you use one briefing for both a dashboard and speech output, the plain_text attribute strips #, ** and emojis automatically. If you create a briefing exclusively for a speaker, you can set a custom device prompt such as: Write two to four short sentences as plain spoken text without a heading, Markdown or emojis.
Data block¶
The data block of the "Bedroom" briefing from the screenshots:
Now: Tuesday, 2026-12-01, 07:08 (morning)
Addressed: Linda, Joachim
Maximum length: 300 characters
Linda:
- Linda's work (next 12 h): 2 appointments
- today 09:00: Team meeting
- today 14:00: Customer meeting
- Linda's phone battery: 45 % (device_class: battery)
Joachim:
- Joachim's work (next 12 h): 1 appointment
- today 10:00: Dentist
Shared:
- Home: now sunny, 8 °C; next 12 h: sunny, max 14 °C, min 9 °C, precipitation chance up to 0 %
- today: sunny, max 14 °C, min 6 °C, precipitation chance 0 %
- Birthdays (next 7 days): 1 appointment
- Saturday 2026-12-05 (all day): Grandma (80)
- Bedroom window: off (device_class: window)
If the same appointment is in several personal calendars, the data block notes that ("also Joachim").
Too long answers¶
The prompt tells the AI the maximum length. If the AI ignores it, the integration shortens the answer. First the AI gets the full prompt once more plus a note on how long its answer was, so greeting, addressing and form are kept. If that is still too long, the text is cut at the end of a sentence and the attribute truncated is true. Quotes or code blocks around the answer are removed.
The shortening request is a second AI call, at most one per run. If it happens often, ask for shorter answers in the prompt or raise the maximum length of the briefing.
Limits of the data block¶
To keep the prompt short, the data block contains per entity at most:
| Entity | Content |
|---|---|
| Calendar | the next 8 appointments within the lookahead: time, title, location |
| Weather | current condition and temperature, hourly forecast summarised over the time window, daily forecast for up to 3 days within the time window |
| To-do list | up to 10 open items; due dates within the time window |
| Any other entity | state, unit and up to 6 short attributes (no IDs, coordinates or texts over 60 characters) |
Debug log¶
The debug log also shows the full prompt:
logger:
logs:
custom_components.ai_briefing: debug