Route messages
Give each message the queue whose keywords or phrases it matches best (a subject match counts double); messages that match none go to the default queue.
Command in the Communications mining toolkit · id ooa.comms/route_messages · 8 inputs (1 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| File | File | No | A CSV file with a header row. | |
| Table | Table | No | The messages as a table. | |
| Rules | Dictionary | Yes | Queue to its keywords or phrases (a list). Discover topics gives a start. | |
| Text columns | String | No | subject,body | The columns with the text, comma separated. |
| ID column | String | No | The column with the message id (empty: the row number). | |
| Subject column | String | No | subject | Matches in this column count double (empty: none). |
| Default queue | String | No | Unsorted | Where messages that match no queue go. |
| Minimum score | Number | No | 1 | Matches a queue needs to win. |
Outputs
| Output | Type | What it is |
|---|---|---|
| routed | Table | id, queue, score, matched (the keywords found); in the messages' order. Add it to a queue with Work queues: Add work items from table. |
| counts | Dictionary | Queue to how many messages went to it. |