Spaces:
Sleeping
Sleeping
| import streamlit as st | |
| import os | |
| from clients import CompanySpecificClient, UserSpecificClient, hooks, RengagmentEmail, display_analytics | |
| st.set_page_config(page_title="SalesIntel", layout="wide") | |
| st.html("styles.html") | |
| endpoint = os.getenv('blog_lead_endpoint') | |
| st.html('<h1 class="title"> SalesIntel </h1>') | |
| st.html('<h4 class="hero-subtitle"> Your AI Sales Companions for Success</h4>') | |
| email_options = [ | |
| "", # Invalid selection | |
| "maria@omdena.com", | |
| "rudradeb@omdena.com", | |
| "jamesel@omdena.com", | |
| "fabio@omdena.com", | |
| "Avnish@omdena.com", | |
| "anushree@omdena.com", | |
| "christiano@omdena.com", | |
| "mohanad@omdena.com", | |
| "tra@omdena.com", | |
| "weronika@omdena.com", | |
| "chethan@omdena.com", | |
| "elizabeth@omdena.com", | |
| "michael@omdena.com", | |
| "robert@omdena.com", | |
| "sean@omdena.com", | |
| "melvin@omdena.com " | |
| ] | |
| email_address = st.selectbox("**Introduce yourself to us**", email_options) | |
| def main(): | |
| # First container for Hook2Lead | |
| cols = st.columns(2) | |
| with cols[0]: | |
| with st.container(border=True): | |
| st.html('<h3><span>Re-engagement Campaigns</span></h3>') | |
| cols_internal = st.columns(2) | |
| with cols_internal[0]: | |
| if st.button("Hook2lead", help="The tool will match it with the leads. You can bring your hooks either a blog, AI announcement, or trend"): | |
| if email_address: | |
| hook_dialog(email_address) | |
| else: | |
| st.warning("Please select a valid email address to proceed.") | |
| with cols_internal[1]: | |
| if st.button("let the AI hooks", help="The AI will summarize the conversation and action points for you and write an email to explore new use cases. You can bring old conversations with previous leads"): | |
| if email_address: | |
| rengage_lead() | |
| else: | |
| st.warning("Please select a valid email address to proceed.") | |
| with cols[1]: | |
| with st.container(border=True): | |
| st.html('<h3><span>Cold Campaigns</span></h3>') | |
| cols = st.columns(2) | |
| with cols[0]: | |
| if st.button("Tailored for companies", help="Generate cold emails based on company offerings and Omdena's services"): | |
| if email_address: | |
| cold_organization_dialog() | |
| else: | |
| st.warning("Please select a valid email address to proceed.") | |
| with cols[1]: | |
| if st.button("Tailored for executives", help="Generate cold emails based on executive achievements"): | |
| if email_address: | |
| cold_executive_dialog() | |
| else: | |
| st.warning("Please select a valid email address to proceed.") | |
| def hook_dialog(email_address): | |
| hooks(email_address) | |
| def cold_organization_dialog(): | |
| CompanySpecificClient(email_address) | |
| def cold_executive_dialog(): | |
| UserSpecificClient(email_address) | |
| def rengage_lead(): | |
| RengagmentEmail(email_address) | |
| if __name__ == "__main__": | |
| logo_url = "https://i.imgur.com/WYnv26e.jpeg" # Replace this with your image's direct URL | |
| st.markdown( | |
| f""" | |
| <img src="{logo_url}" class="logo"> | |
| """, | |
| unsafe_allow_html=True, | |
| ) | |
| main() | |
| display_analytics() |