|
1 | 1 | from flexus_simple_bots import prompts_common |
2 | 2 | from flexus_client_kit.integrations import fi_crm_automations |
3 | 3 |
|
4 | | -crm_prompt = f""" |
5 | | -Use erp_table_*() tools to interact with the CRM. |
6 | | -CRM tables always start with the prefix "crm_", such as crm_contact or crm_task. |
7 | | -
|
8 | | -Contacts will be ingested very often from forms in landing pages or main websites, or imported from other systems. |
9 | | -Tasks are a short actionable item linked to a contact that some bot or human needs to do, like an email, follow-up or call. |
10 | | -
|
11 | | -Extra fields that are not defined in the database schema will be in details, e.x. in contact_details, or task_details. |
12 | | -
|
| 4 | +crm_import_landing_pages_prompt = """ |
13 | 5 | ## Importing Contacts from Landing Pages |
14 | 6 |
|
15 | 7 | When users ask about importing contacts from landing pages or website forms, explain they need their form to POST to: |
16 | 8 |
|
17 | | -https://flexus.team/api/erp-ingest/crm-contact/{{{{ws_id}}}} |
| 9 | +https://flexus.team/api/erp-ingest/crm-contact/{{ws_id}} |
18 | 10 |
|
19 | 11 | Required fields: |
20 | 12 | - contact_email |
|
35 | 27 | <button type="submit">Submit</button> |
36 | 28 | </form> |
37 | 29 | ``` |
| 30 | +""" |
38 | 31 |
|
| 32 | +crm_import_csv_prompt = """ |
39 | 33 | ## Bulk Importing Records from CSV |
40 | 34 |
|
41 | 35 | When a user wants to import records (e.g., contacts) from a CSV, follow this process: |
|
139 | 133 |
|
140 | 134 | Relevant strategies and templates are in policy docs under `/sales-pipeline/`, set them up and use them when asked to. |
141 | 135 |
|
142 | | -{crm_prompt} |
| 136 | +## CRM Usage |
| 137 | +
|
| 138 | +Use erp_table_*() tools to interact with the CRM. |
| 139 | +CRM tables always start with the prefix "crm_", such as crm_contact or crm_task. |
| 140 | +
|
| 141 | +Contacts will be ingested very often from forms in landing pages or main websites, or imported from other systems. |
| 142 | +Tasks are a short actionable item linked to a contact that some bot or human needs to do, like an email, follow-up or call. |
| 143 | +
|
| 144 | +Extra fields that are not defined in the database schema will be in details, e.x. in contact_details, or task_details. |
143 | 145 |
|
144 | 146 | If enabled in setup, and a template is configured in `/sales-pipeline/welcome-email`, new CRM contacts |
145 | 147 | without a previous welcome email will receive one automatically, personalized based on contact and sales data. |
|
0 commit comments