Workflow - Control¶
Install packages
Import packages
Define intent structured output
User input: What is generative AI?
User_intent: question
Model confidence: 0.95
Model reasoning: The user is asking a question about the definition of generative AI.
Handler response: Generative AI is a type of artificial intelligence that can create new content, such as text, images, audio, or code.
User input: Please schedule a meeting for tomorrow
User_intent: request
Model confidence: 0.95
Model reasoning: The user is asking for a meeting to be scheduled, which falls under the 'request' category.
Handler response: Processing your request: Please schedule a meeting for tomorrow
User input: I am not happy with service quality
User_intent: complaint
Model confidence: 0.95
Model reasoning: The user expresses dissatisfaction with the service quality, indicating a complaint.
Handler response: I understand your concern about I am not happy with service quality. Let me escalate this.
User input: dibby dib vapt vupt
User_intent: unclassified
Model confidence: 0.95
Model reasoning: The input 'dibby dib vapt vupt' does not resemble a question, request, or complaint. It appears to be a sequence of nonsensical words.
Handler response: Your request 'dibby dib vapt vupt' could not be classified