|
|
|
def send_email(to_email, subject, body): |
|
|
|
st.write(f"Email sent to: {to_email}") |
|
st.write(f"Subject: {subject}") |
|
st.write(f"Body: {body}") |
|
return "Email sent successfully" |
|
|
|
|
|
st.title("AI CyberSecurity Program Advisor") |
|
|
|
st.write("Welcome! Please provide your details to schedule a video call to discuss our cybersecurity program.") |
|
|
|
|
|
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_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: |
|
|
|
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_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.") |