Skip to main content

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​

InputTypeRequiredDefaultWhat it is
FileFileNoA CSV file with a header row.
TableTableNoThe messages as a table.
RulesDictionaryYesQueue to its keywords or phrases (a list). Discover topics gives a start.
Text columnsStringNosubject,bodyThe columns with the text, comma separated.
ID columnStringNoThe column with the message id (empty: the row number).
Subject columnStringNosubjectMatches in this column count double (empty: none).
Default queueStringNoUnsortedWhere messages that match no queue go.
Minimum scoreNumberNo1Matches a queue needs to win.

Outputs​

OutputTypeWhat it is
routedTableid, queue, score, matched (the keywords found); in the messages' order. Add it to a queue with Work queues: Add work items from table.
countsDictionaryQueue to how many messages went to it.