-
Notifications
You must be signed in to change notification settings - Fork 8
Customer service workflow #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
# Agent 2: Issue Classification Agent | ||
def classify_issue_type(issue_description: str) -> str: | ||
"""Classify the type of customer issue based on description.""" | ||
# this could be a more sophisticated classification function | ||
if any(word in issue_description.lower() for word in ["bill", "payment", "charge", "invoice"]): | ||
return "billing" | ||
elif any(word in issue_description.lower() for word in ["broken", "error", "not working", "technical"]): | ||
return "technical" | ||
elif any(word in issue_description.lower() for word in ["refund", "return", "cancel"]): | ||
return "refund" | ||
else: | ||
return "general" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be an agent itself. users could enter information that is relevant but doesn't include those keywords. an agent with proper instructions will figure this out on its own
@@ -0,0 +1,186 @@ | |||
import os |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
break down this file into smaller files in different subfolders
|
||
async def main(): | ||
# Initialize the database first | ||
await sdk_context.initialize_database() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to call this. it's called automatically
run with
poetry run python main.py