gbserver/src/prompts/business/send-proposal.bas
Rodrigo Rodriguez (Pragmatismo) c75095505b
Some checks failed
GBCI / build (push) Failing after 8m43s
Implement email, meeting, proxy, and webmail services with LXC containers
- Added email service setup script to configure Stalwart Mail in a container.
- Created meeting service script to install and configure LiveKit with TURN server.
- Developed proxy service script to set up Caddy as a reverse proxy.
- Implemented webmail service script to deploy Roundcube with PHP support.
- Established system service files for each service to manage their lifecycle.
- Configured persistent storage for logs, data, and configuration for all services.
- Added integration tests for email listing and file upload functionalities.
- Updated prompt guidelines for consistent directory structure and user management.
2025-06-19 23:16:57 -03:00

25 lines
933 B
QBasic

PARAM to AS STRING
PARAM template AS STRING
PARAM opportunity AS STRING
company = QUERY "SELECT Company FROM Opportunities WHERE Id = ${opportunity}"
doc = FILL template
# Generate email subject and content based on conversation history
subject = REWRITE "Based on this ${history}, generate a subject for a proposal email to ${company}"
contents = REWRITE "Based on this ${history}, and ${subject}, generate the e-mail body for ${to}, signed by ${user}, including key points from our proposal"
# Add proposal to CRM
CALL "/files/upload", ".gbdrive/Proposals/${company}-proposal.docx", doc
CALL "/files/permissions", ".gbdrive/Proposals/${company}-proposal.docx", "sales-team", "edit"
# Record activity in CRM
CALL "/crm/activities/create", opportunity, "email_sent", {
"subject": subject,
"description": "Proposal sent to " + company,
"date": NOW()
}
# Send the email
CALL "/comm/email/send", to, subject, contents, doc