{% extends "base.html" %} {% block content %}

Command Routing

Configure commands, channel bindings, and per-command delivery in a predictable way.

{% if scope_service and scope_identifier %}
Scoped to this chat only: {{ scope_service }} · {{ scope_identifier }}
{% endif %}

Create Command Profile

Create reusable command behavior. bp set and bp set range are fixed bp subcommands and will appear automatically.

{% csrf_token %} {% if scope_service and scope_identifier %} {% endif %}
{% for profile in profiles %}

{{ profile.name }} ({{ profile.slug }})

Help

  • Send plan to egress: posts generated plan to enabled egress bindings.
  • Send status to source: posts a short confirmation message in the source chat.
  • Send status to egress: posts a short confirmation to egress channels.
  • Template support: only bp uses the template, and only in AI mode.
{% csrf_token %} {% if scope_service and scope_identifier %} {% endif %}
Flags

Variant Policies

Delivery switches control where plan/status are posted. Egress bindings define destinations.

Turn off Save Document to run/fanout without storing a business plan artifact.

{% for variant in profile.variant_rows %} {% csrf_token %} {% if scope_service and scope_identifier %} {% endif %} {% if variant.warn_verbatim_plan %} {% endif %} {% empty %} {% endfor %}
Variant Trigger Enabled Generation Save Document Plan -> Egress Status -> Source Status -> Egress
{{ variant.variant_label }} {% if not variant.template_supported %} no template {% endif %} {{ variant.trigger_token }}
Warning: {{ variant.variant_label }} is in verbatim mode with plan fanout enabled. Recipients will get raw transcript-style output.
No variants configured.
{% csrf_token %} {% if scope_service and scope_identifier %} {% endif %}
{% csrf_token %} {% if scope_service and scope_identifier %} {% endif %}

Effective Destinations

{% if profile.enabled_egress_bindings %}
    {% for row in profile.enabled_egress_bindings %}
  • {{ row.service }} {{ row.channel_identifier }}
  • {% endfor %}

{{ profile.enabled_egress_bindings|length }} enabled egress destination{{ profile.enabled_egress_bindings|length|pluralize }}.

{% else %}
No enabled egress destinations. Plan fanout will show sent:0.
{% endif %} {% if preview_profile_id and preview_profile_id == profile.id|stringformat:"s" %}

Dry Run Preview

    {% for variant in profile.variant_rows %}
  • {{ variant.variant_label }}: {% if variant.row.enabled %}enabled{% else %}disabled{% endif %}, mode={{ variant.row.generation_mode }}, save_document={{ variant.row.store_document }}, plan->egress={{ variant.row.send_plan_to_egress }}, status->source={{ variant.row.send_status_to_source }}, status->egress={{ variant.row.send_status_to_egress }}
  • {% endfor %}
{% endif %}

Channel Bindings

Ingress accepts triggers. Egress receives plan/status fanout if enabled in variant policy.

{% for binding in profile.visible_bindings %} {% empty %} {% endfor %}
DirectionServiceChannelActions
{% if binding.direction == "ingress" %}Ingress (Accept Triggers) {% elif binding.direction == "egress" %}Egress (Delivery Destination) {% else %}Scratchpad Mirror {% endif %} {{ binding.service }} {{ binding.channel_identifier }}
{% csrf_token %} {% if scope_service and scope_identifier %} {% endif %}
No bindings yet.
{% csrf_token %} {% if scope_service and scope_identifier %} {% endif %}
{% if scope_service %} {% endif %}
{% if profile.show_actions_editor %}

Actions

Enable/disable each step and use the reorder capsule to change execution order.

{% for action_row in profile.actions.all %} {% empty %} {% endfor %}
TypeEnabledReorderActions
{% if action_row.action_type == "extract_bp" %}Extract Business Plan {% elif action_row.action_type == "save_document" %}Save Document {% elif action_row.action_type == "post_result" %}Post Result {% else %}{{ action_row.action_type }} {% endif %} {{ action_row.enabled }}
{% csrf_token %} {% if scope_service and scope_identifier %} {% endif %}
{% csrf_token %} {% if scope_service and scope_identifier %} {% endif %}
{% csrf_token %} {% if scope_service and scope_identifier %} {% endif %}
No actions.
{% endif %}
{% csrf_token %} {% if scope_service and scope_identifier %} {% endif %}
{% empty %}
No command profiles configured.
{% endfor %}

Business Plan Documents

{% for doc in documents %} {% empty %} {% endfor %}
TitleStatusSourceUpdatedActions
{{ doc.title }} {{ doc.status }} {{ doc.source_service }} · {{ doc.source_channel_identifier }} {{ doc.updated_at }} Open
No business plan documents yet.
{% endblock %}