{% extends "base.html" %} {% block title %}Integrations · {{ assistant }}{% endblock %} {% block main_class %}form{% endblock %} {# A connected account under its service: works, or what does not and how to fix it. #} {% macro account_row(connection, provider_id, choices_label=None, editable=False) %} {% set problems = (connection.capabilities | rejectattr("ok") | list if connection.capabilities else []) + failing.get(connection.id, []) %}
{{ connection.account }}
{% if connection.checked_at %}Tested {{ connection.checked_at | localtime }}{% else %}Not tested yet{% endif %}
{% if problems %}✕ {{ problems | length }} {{ "problem" if problems | length == 1 else "problems" }} {% elif not connection.capabilities %}○ Not tested {% else %}✓ Connected{% endif %} {# The account's actions in one menu, so the list stays calm: only states stand out. #}
{% if problems %} {% endif %}
{% endmacro %} {# A service's logo: its brand icon in myOrb's color, or its letters. #} {% macro logo(letters, icon=None) %} {% if icon %} {% else %}{% endif %} {% endmacro %} {# How often a service's data is fetched and how many requests it got in the last hour, as numbers in the middle of its row. #} {% macro pace(stats) %} {# Two slots in fixed places, so the numbers line up from service to service. #}
{% if stats and stats.shown %} {% if stats.every and stats.options %} {# A choice: the tile opens the paces to choose from. #} {% elif stats.every %}
{{ stats.every | replace("every ", "") }}Refreshes every
{% else %}
{% endif %}
{{ stats.requests }}{% if stats.limited %} {{ stats.limited }}× limited{% endif %}Requests · last hour
{% endif %}
{% endmacro %} {# A service as a tile: its logo, its name and how it is. #} {% macro tile(key, name, logo_html, state, status) %} {% endmacro %} {# What a tile opens: the service's panel, its accounts and buttons, as before the tiles. A service that has just changed opens again on arrival, with the message in it. #} {% macro service_dialog(key, name) %}
Integration
{% if open_service == key %} {% if message %}
✓ DONE{{ message }}
{% endif %} {% if error %}{% endif %} {% endif %}
{{ caller() }}
{% endmacro %} {% macro logo_letters(letters) %}{% endmacro %} {% macro voice_logo() %}{% endmacro %} {# How many checks of these accounts failed, and loads of their data since. #} {% macro problem_count(accounts) %}{% set ns = namespace(n=0) %}{% for connection in accounts %}{% set ns.n = ns.n + (connection.capabilities or []) | rejectattr("ok") | list | length + failing.get(connection.id, []) | length %}{% endfor %}{{ ns.n }}{% endmacro %} {# A connected service's tile: green, or red with its problems. #} {% macro account_tile(key, name, logo_html, accounts, off_status) %} {% set problems = problem_count(accounts) | trim | int %} {% if not accounts %}{{ tile(key, name, logo_html, "off", off_status) }} {% elif problems %}{{ tile(key, name, logo_html, "fail", problems ~ (" problem" if problems == 1 else " problems")) }} {% else %}{{ tile(key, name, logo_html, "ok", (accounts | length ~ " connected") if accounts | length > 1 else "Connected") }}{% endif %} {% endmacro %} {% macro google_service() %} {{ account_tile("google", "Google", logo("G", "google"), connections, "No account" if client else "Not set up") }} {% call service_dialog("google", "Google") %}
{{ logo("G", "google") }}
GoogleGmail · Calendar · YouTube
{% if not client %}myOrb connects through your own Google Cloud OAuth client. Setting it up takes about 10 minutes and is free.{% elif not connections %}The OAuth client is set up. Connect your Google account.{% else %}Email, calendar and YouTube subscriptions of your Google accounts.{% endif %}
{{ pace(google_pace if connections else none) }}
{% if not client %}○ Not set upSet up Google {% else %} {% if not connections %}○ No account{% endif %} OAuth client
{% endif %}
{% for connection in connections %}{{ account_row(connection, "google") }}{% endfor %} {% endcall %} {% endmacro %} {% macro provider_service(provider, accounts) %} {{ account_tile(provider.id, provider.name, logo(provider.logo, provider.icon), accounts, "Not connected") }} {% call service_dialog(provider.id, provider.name) %}
{{ logo(provider.logo, provider.icon) }}
{{ provider.name }}{% if accounts | length > 1 %}{{ accounts | length }} connected{% endif %}
{{ provider.summary }}
{{ pace(paces[provider.id]) }}
{% if not accounts %}○ Not connected{% endif %} {% if not accounts or provider.multiple %}{{ "+ Add " ~ provider.account_noun if accounts else "Connect" }}{% endif %}
{% for connection in accounts %}{{ account_row(connection, provider.id, provider.choices_label, editable=True) }}{% endfor %} {% endcall %} {% endmacro %} {% block content %}
Settings

Integrations

{% if message and not open_service %}
✓ DONE{{ message }}
{% endif %} {% if error and not open_service %}{% endif %} {% if setup %} {% set done = setup | selectattr("state", "equalto", "done") | list | length %} {% set next = setup | selectattr("state", "equalto", "todo") | first %}

Get started

{{ done }} of {{ setup | length }} done. Each step ticks itself once it works.
    {% for step in setup %}
  1. {{ step.title }}{% if not step.required %}Optional{% endif %}
    {{ step.detail }}
    {% if step.state == "done" %}✓ Done {% elif step.state == "blocked" %}○ Waiting {% else %} {% set primary = "btn-primary" if step is sameas next else "btn-ghost btn-small" %} {% if step.post %}
    {% else %}{{ step.label }}{% endif %} {% endif %}
  2. {% endfor %}
{% endif %} {# The services as tiles, connected first; each opens what its panel used to show. #}
{% if connections or providers | selectattr(1) | list %}

Connected

{% if connections %}{{ google_service() }}{% endif %} {% for provider, accounts in providers if accounts %}{{ provider_service(provider, accounts) }}{% endfor %}
{% endif %} {% if not connections or providers | rejectattr(1) | list %}

Available

{% if not connections %}{{ google_service() }}{% endif %} {% for provider, accounts in providers if not accounts %}{{ provider_service(provider, accounts) }}{% endfor %}
{% endif %}

Features

{% for name, settings in plugin_settings %} {% set key = "feature-" ~ name | lower | replace(" ", "-") %} {{ tile(key, name, logo_letters(settings.logo), "plain", "Settings") }} {% call service_dialog(key, name) %}
{{ name }}
{{ settings.summary }}
{% endcall %} {% endfor %} {{ tile("feature-music", "Music", logo_letters("♪"), "plain", "Welcome screen") }} {% call service_dialog("feature-music", "Music") %}
MusicWelcome screen
Built-in ambient sound, or a YouTube video, playlist or live stream.
{% endcall %} {{ tile("feature-voice", "Voice", voice_logo(), "ok" if voice.azure else "plain", "Azure Speech" if voice.azure else "Browser voices") }} {% call service_dialog("feature-voice", "Voice") %}
{{ voice_logo() }}
VoiceRead aloud
{% if voice.azure %}Microsoft Azure Speech reads the brief.{% else %}The browser's own voices read the brief, or natural voices from Microsoft Azure Speech.{% endif %}
{% if voice.azure %}✓ Azure Speech{% endif %}Settings
{% endcall %} {% set ai_logo = logo("AI", "anthropic") if not claude or claude.service == "anthropic" else logo("AI") %} {{ tile("feature-ai", claude.name if claude else "AI", ai_logo, "ok" if claude else "off", "Connected" if claude else "Not set up") }} {% call service_dialog("feature-ai", claude.name if claude else "AI") %}
{{ ai_logo }}
{{ claude.name if claude else "AI" }}Daily brief · Ask
{% if claude %}Writes your brief every day at {{ claude.brief_time }} with {{ model_name(claude.model) }}.{% if claude_spent and claude.service == "anthropic" %} {{ claude_spent[1] }}{{ "%.2f" | format(claude_spent[0]) }} in the last 30 days.{% endif %}{% else %}Writes a short daily brief from your calendar, email and tasks and answers what you ask: Claude, OpenAI, Gemini, Mistral or a local model, with your own API key.{% endif %}
{% if claude %}✓ ConnectedSettings {% else %}○ Not set upConnect an AI{% endif %}
{% endcall %}
{% if setup_hidden %}
{% endif %} {% endblock %}