Update main.py
Browse files
main.py
CHANGED
@@ -5,7 +5,7 @@ from dotenv import load_dotenv
|
|
5 |
from heyoo import WhatsApp
|
6 |
import assemblyai as aai
|
7 |
import openai
|
8 |
-
from utility import generateResponse, parse_multiple_transactions, create_inventory, create_sale
|
9 |
from google.cloud import firestore
|
10 |
|
11 |
|
@@ -155,6 +155,10 @@ def hook():
|
|
155 |
pass
|
156 |
elif intent == 'delete':
|
157 |
pass
|
|
|
|
|
|
|
|
|
158 |
else:
|
159 |
firestore_msg = f'The detected intent, {intent}, is not currently supported!'
|
160 |
|
|
|
5 |
from heyoo import WhatsApp
|
6 |
import assemblyai as aai
|
7 |
import openai
|
8 |
+
from utility import generateResponse, parse_multiple_transactions, create_inventory, create_sale, read_datalake
|
9 |
from google.cloud import firestore
|
10 |
|
11 |
|
|
|
155 |
pass
|
156 |
elif intent == 'delete':
|
157 |
pass
|
158 |
+
elif intent == 'read':
|
159 |
+
response = str(read_datalake(mobile, message))
|
160 |
+
messenger.send_message(message=f"{response}", recipient_id=mobile)
|
161 |
+
|
162 |
else:
|
163 |
firestore_msg = f'The detected intent, {intent}, is not currently supported!'
|
164 |
|