gbserver/prompts/business/data-enrichment.bas

32 lines
1.8 KiB
QBasic
Raw Normal View History

2025-08-16 18:13:03 -03:00
let items = FIND "gb.rob", "ACTION=EMUL"
2025-08-14 09:42:05 -03:00
FOR EACH item IN items
2025-07-29 21:39:24 -03:00
2025-07-20 15:01:18 -03:00
PRINT item.company
2025-08-16 18:13:03 -03:00
let website = item.website ?? ""
if item.website == "" {
website = WEBSITE OF item.company
2025-08-24 19:53:58 -03:00
SET "gb.rob", "id="+ item.id, "website=" + website
2025-08-16 18:13:03 -03:00
PRINT website
}
2025-07-31 00:36:10 -03:00
2025-08-14 09:42:05 -03:00
let page = GET website
2025-08-16 18:13:03 -03:00
let prompt = "Build the same simulator, keep js, svg, css, assets paths, just change title, keep six cases of six messages each (change and return VALID JSON with a minium of 6 cases and 6-8 messages each), but for " + item.company + " using just *content about the company* " + item.llm_notes + " from its website, so it is possible to create a good and useful emulator in the same langue as the content: " + page
2025-07-31 00:36:10 -03:00
let alias = LLM "Return a single word for " + item.company + " like a token, no spaces, no special characters, no numbers, no uppercase letters."
2025-08-16 18:13:03 -03:00
CREATE_SITE alias, "gb-emulator-base", prompt
let to = item.emailcto
2025-08-16 18:13:03 -03:00
let subject = "Simulador " + alias + " ficou pronto"
let name = FIRST(item.contact)
let body = "Oi, " + name + ". Tudo bem? Para vocês terem uma ideia do ambiente conversacional em AI e algumas possibilidades, preparamos o " + alias + " especificamente para vocês!" + "\n\n Acesse o site: https://sites.pragmatismo.com.br/" + alias + "\n\n" + "Para acessar o simulador, clique no link acima ou copie e cole no seu navegador." + "\n\n" + "Para iniciar, escolha um dos casos conversacionais." + "\n\n" + "Atenciosamente,\nRodrigo Rodriguez\n\n"
let body = LLM "Melhora este e-mail: ------ " + body + " ----- mas mantem o link e inclui alguma referência ao histórico com o cliente: " + item.history
2025-07-30 23:26:06 -03:00
CREATE_DRAFT to, subject, body
2025-08-16 18:13:03 -03:00
SET "gb.rob", "id="+ item.id, "ACTION=CALL"
SET "gb.rob", "id="+ item.id, "emulator=true"
2025-08-14 09:42:05 -03:00
2025-08-16 18:13:03 -03:00
WAIT 3000
2025-08-14 09:42:05 -03:00
NEXT item