Some checks failed
GBCI / build (push) Failing after 8m43s
- 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.
25 lines
933 B
QBasic
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
|