File size: 1,972 Bytes
9c95680 28552b3 9c95680 28552b3 9c95680 28552b3 9c95680 28552b3 9c95680 28552b3 9c95680 28552b3 9c95680 28552b3 9c95680 28552b3 9c95680 5ab8f67 9c95680 28552b3 9c95680 28552b3 9c95680 e28f41a 9c95680 f4f4ef5 9c95680 28552b3 9c95680 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# Mock function to send an email
def send_email(to_email, subject, body):
# For demo purposes, we'll just print the email details
st.write(f"Email sent to: {to_email}")
st.write(f"Subject: {subject}")
st.write(f"Body: {body}")
return "Email sent successfully"
# Streamlit interface
st.title("AI CyberSecurity Program Advisor")
st.write("Welcome! Please provide your details to schedule a video call to discuss our cybersecurity program.")
# Collect user information
name = st.text_input("Your Name")
email = st.text_input("Your Email Address")
preferred_date = st.date_input("Preferred Date for the Video Call")
# Zoom meeting details
zoom_link = """
Lawrence Emenike is inviting you to a scheduled Zoom meeting.
Topic: Lawrence Emenike's Zoom Meeting
Time: Aug 10, 2024 05:00 PM West Central Africa
Join Zoom Meeting
https://us04web.zoom.us/j/73793374638?pwd=S0TEJ30da7dhQ8viOdafMzPfCVzoLJ.1
Meeting ID: 737 9337 4638
Passcode: 9cNPkn
"""
if st.button("Schedule Video Call"):
if name and email and preferred_date:
# Compose the email
subject = "Invitation to Discuss Cybersecurity Program"
body = f"""
Hi {name},
Thank you for your interest in our cybersecurity program. We would like to invite you to a video call to discuss how our program can benefit your organization.
Here are the details:
Preferred Date: {preferred_date}
Zoom Meeting Link: {zoom_link}
Looking forward to our discussion!
Best regards,
Lawrence Emenike
"""
# Send the email
send_email(email, subject, body)
st.success("Your video call has been scheduled, and an email has been sent!")
else:
st.error("Please fill in all the required fields.")
st.sidebar.title("About")
st.sidebar.info("This is a demo of an AI CyberSecurity Program Advisor. It's designed to help you schedule a video call to discuss our cybersecurity program.") |