Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -353,6 +353,7 @@ def send_whatsapp_message(twilio_client, conversation_sid, message_body, bot_ide
|
|
353 |
.create(author=bot_identity_val, body=message_body)
|
354 |
st.success(f"Sent reply to conversation {conversation_sid}")
|
355 |
st.write(f"Twilio response to send: {message_body}")
|
|
|
356 |
return True
|
357 |
except Exception as e:
|
358 |
st.error(f"Error sending Twilio message to {conversation_sid}: {e}")
|
@@ -755,6 +756,7 @@ if st.session_state.get("bot_started") and st.session_state.get("rag_pipeline_re
|
|
755 |
twilio_bot_whatsapp_identity_to_use
|
756 |
):
|
757 |
st.session_state.processed_message_sids.add(msg_sid)
|
|
|
758 |
st.success(f"Successfully responded to WhatsApp message SID {msg_sid} from {author_id}.")
|
759 |
else:
|
760 |
st.error(f"Failed to send WhatsApp response for message SID {msg_sid} from {author_id}.")
|
|
|
353 |
.create(author=bot_identity_val, body=message_body)
|
354 |
st.success(f"Sent reply to conversation {conversation_sid}")
|
355 |
st.write(f"Twilio response to send: {message_body}")
|
356 |
+
print(f"[Twilio Send] Sending response: {message_body}")
|
357 |
return True
|
358 |
except Exception as e:
|
359 |
st.error(f"Error sending Twilio message to {conversation_sid}: {e}")
|
|
|
756 |
twilio_bot_whatsapp_identity_to_use
|
757 |
):
|
758 |
st.session_state.processed_message_sids.add(msg_sid)
|
759 |
+
#print(f"[Twilio Send] Sending response: {message_body}")
|
760 |
st.success(f"Successfully responded to WhatsApp message SID {msg_sid} from {author_id}.")
|
761 |
else:
|
762 |
st.error(f"Failed to send WhatsApp response for message SID {msg_sid} from {author_id}.")
|