Customer call routing¶
Automatically route customer calls to the right department.
Call routing
import marvin
from enum import Enum
class Department(Enum):
SALES = "sales"
SUPPORT = "support"
BILLING = "billing"
# define a convenience function
def route_call(transcript: str) -> Department:
return marvin.classify(
transcript,
labels=Department,
instructions="Select the best department for the customer request",
)
💳 Update payment method
💵 Price matching