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

Command Routing

Manage command profiles, channel bindings, business-plan outputs, and translation bridges.

Create Command Profile

Create reusable command behavior. Example: #bp# reply command for business-plan extraction.

{% csrf_token %}

Stable command id, e.g. bp.

{% for profile in profiles %}

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

Flag Definitions

  • enabled: master on/off switch for this command profile.
  • reply required: command only runs when the trigger message is sent as a reply to another message.
  • exact match: message text must be exactly the trigger token (for example #bp#) with no extra text.
  • visibility = status_in_source: post command status updates back into the source channel.
  • visibility = silent: do not post status updates in the source channel.
  • binding direction ingress: channels where trigger messages are accepted.
  • binding direction egress: channels where command outputs are posted.
  • binding direction scratchpad_mirror: scratchpad/mirror channel used for relay-only behavior.
  • action extract_bp: run AI extraction to produce business plan content.
  • action save_document: save/editable document and revision history.
  • action post_result: fan out generated result to enabled egress bindings.
  • position: execution order (lower runs first).
{% csrf_token %}
Flags

Channel Bindings

A command runs only when the source channel is in ingress. Output is sent to all enabled egress bindings.

{% for binding in profile.channel_bindings.all %} {% empty %} {% endfor %}
DirectionServiceChannelActions
{% if binding.direction == "ingress" %}Ingress (Accept Triggers) {% elif binding.direction == "egress" %}Egress (Post Results) {% else %}Scratchpad Mirror {% endif %} {{ binding.service }} {{ binding.channel_identifier }}
{% csrf_token %}
No bindings yet.
{% csrf_token %}

Actions

Enable/disable each step and set execution order with position.

{% for action_row in profile.actions.all %} {% empty %} {% endfor %}
TypeEnabledOrderActions
{% 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 }} {{ forloop.counter }}
{% csrf_token %}
{% csrf_token %}
{% csrf_token %}
No actions.
{% csrf_token %}
{% 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 %}