Spaces:
Build error
Build error
Greg Thompson
commited on
Commit
·
038006a
1
Parent(s):
f549aa3
Refactor conversation_manager to use simplified Turn.io event data object
Browse files
mathtext_fastapi/conversation_manager.py
CHANGED
@@ -161,10 +161,10 @@ def manage_conversational_response(data_json):
|
|
161 |
"""
|
162 |
|
163 |
message_data = data_json.get('message_data', '')
|
164 |
-
context_data = data_json.get('
|
165 |
|
166 |
-
whatsapp_id = message_data['
|
167 |
-
user_message = message_data['
|
168 |
|
169 |
message_package = return_next_conversational_state(context_data, user_message)
|
170 |
|
|
|
161 |
"""
|
162 |
|
163 |
message_data = data_json.get('message_data', '')
|
164 |
+
context_data = data_json.get('context_data', '')
|
165 |
|
166 |
+
whatsapp_id = message_data['author_id']
|
167 |
+
user_message = message_data['message_body']
|
168 |
|
169 |
message_package = return_next_conversational_state(context_data, user_message)
|
170 |
|