Communication channels
A communication channel receives and/or sends messages for whoever owns it. Channels replace signal sources: what a channel receives still becomes a signal and runs through classification, the case builder and review. What is new is that a channel belongs to someone and can send.
| Type | Receives | Sends |
|---|---|---|
email | IMAP mailbox | own SMTP server, with address, display name and footer |
webhook | HTTP requests from other systems | – |
module | new records of a Brezel module | – |
| chat (built in) | – | messages in Brezel to colleagues |
WhatsApp and telephone channels are planned.
The channels module
Section titled “The channels module”One module per system carries the CommunicationChannels capability. owner_modules names the modules whose records
can own a channel; Bakery adds a select field owner_<key> for each of them. Each owner module carries the
ChannelOwner capability, which provides the layout building block ${capabilityComposable("channels")}: a table of
the record’s channels with “New”.
[ { "resource_module": "channels", "depends_on": "resource_module.departments", "resource": { "identifier": "channels", "title": "name", "options": { "capabilities": [ { "identifier": "CommunicationChannels", "options": { "owner_modules": {"user": "users", "department": "departments"}, "secret_module": "secrets" } } ] }, "fields": [] } }]Add {"identifier": "ChannelOwner"} to the capabilities of users and departments, and the row
"${capabilityComposable('channels')}" to their detail layouts. To give customers or projects their own channels,
add them to owner_modules the same way.
Who works on what a channel receives
Section titled “Who works on what a channel receives”The owner decides, through the organisation chart:
| Owner | Agents that take over its cases | People who approve them |
|---|---|---|
| AI colleague | that agent | its nearest human superior |
| Department | the AI colleagues of the department and the departments below | the department leads |
| Person | any agent | that person |
| nobody (company channel) | any agent | as configured |
agent_candidates and case_approvers on the channel add agents and approvers on top.
Sending
Section titled “Sending”An agent sends through, in this order:
- its own channel (for a personal assistant: the channel of its person),
- a channel of its department, then of the departments above,
- the default channel of the type (
is_default); there is one per type.
send_policy decides whether a person approves every message first (approval, the default) or the agent sends
directly (automatic). The approval card shows recipient, subject and text; the approval holds for exactly that message.
Footer
Section titled “Footer”E-mail channels add their footer below every message. Placeholders: {sender.name}, {sender.profession},
{sender.department}, {company}. A line whose placeholders are all empty is left out, so one footer fits everyone.
display_name may contain {sender.name}, e.g. {sender.name} | Example Ltd.
Credentials
Section titled “Credentials”A channel never stores a password. Its field credential points to a login secret of the
secret manager. The channel uses it on behalf of the person who last set the
credential or changed where the channel connects (IMAP/SMTP server, port, username); that person must be allowed to use
the secret. Somebody who may not use a secret can therefore not point it at a server of their own.
In the setup chat and the channel form the password is typed into a secure field; Brezel stores it as a secret and connects the channel.
Agent tools
Section titled “Agent tools”The toolkit channels is part of every agent’s default tools. Its tool send_message:
channel_type: "email"withto,subject,body(Markdown, without signature), optionallychannel(another of the agent’s channels; a channel it may not use is refused with the list of those it may) andreply_to_signal(answers a received e-mail in its thread, through the channel it came in);channel_type: "chat"writes a colleague in Brezel, also one the agent has no chat with yet (withsubjecta new chat is started).
Moving from signal sources
Section titled “Moving from signal sources”bakery migrate-signal-sources-to-channels turns every signal source into a channel with the same identifier (webhook
URLs stay valid, mails already read are not read again), moves the mailbox password into a login secret and points the
signals at the channel. It is idempotent; Brezel Cloud runs it on every bootstrap.