Skip to main content

Worked example: message-routing

Classifies a customer message with Method’s classifier, then a script rule chooses a support destination. ticket.method adds one ticket write that a retry does not repeat.

TASK.md

message-routing.method

routing.mjs

choose-destination.mjs

inputs.json

result.fixture.json

ticket.method

create-ticket.mjs

README.md

Installed files

  • message-routing/README.md
  • message-routing/TASK.md
  • message-routing/choose-destination.mjs
  • message-routing/create-ticket.mjs
  • message-routing/inputs.json
  • message-routing/message-routing.method
  • message-routing/result.fixture.json
  • message-routing/routing.mjs
  • message-routing/routing.test.mjs
  • message-routing/ticket.method
  • message-routing/ticket.test.mjs