0
0
Agentic_aiml~10 mins

Customer support agent architecture in Agentic Ai - Interactive Code Practice

Choose your learning style8 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to initialize the customer support agent with a knowledge base.

Agentic_ai
agent = CustomerSupportAgent(knowledge_base=[1])
Drag options to blanks, or click blank then click option'
AFAQDatabase()
BUserProfile()
CSessionManager()
DChatHistory()
Attempts:
3 left
2fill in blank
medium

Complete the code to preprocess the user's message before passing it to the agent.

Agentic_ai
processed_message = preprocess([1])
Drag options to blanks, or click blank then click option'
Auser_message
Bknowledge_base
Cagent_response
Dagent_state
Attempts:
3 left
3fill in blank
hard

Fix the error in the code that generates the agent's reply.

Agentic_ai
reply = agent.generate_reply([1])
Drag options to blanks, or click blank then click option'
Aknowledge_base
Braw_input
Cagent_state
Dprocessed_message
Attempts:
3 left
4fill in blank
hard

Fill both blanks to update the agent's state and log the conversation.

Agentic_ai
agent.update_state([1])
logger.log_conversation([2])
Drag options to blanks, or click blank then click option'
Areply
Buser_message
Cprocessed_message
Dagent_state
Attempts:
3 left
5fill in blank
hard

Fill all three blanks to define the main loop of the customer support agent.

Agentic_ai
while True:
    [1] = listen_to_user()
    [2] = preprocess([1])
    [3] = agent.generate_reply([2])
    send_to_user([3])
Drag options to blanks, or click blank then click option'
Auser_input
Bprocessed_input
Creply
Dagent_state
Attempts:
3 left