The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { msg } from '@lingui/core/macro';
import { IconPlus, IconSettingsAutomation, IconSparkles } from 'twenty-ui/icon';
import { type SuggestedPrompt } from '@/ai/types/SuggestedPrompt';
export const DEFAULT_SUGGESTED_PROMPTS: SuggestedPrompt[] = [
{
id: 'workflow',
label: msg`Create a workflow`,
Icon: IconSettingsAutomation,
prompts: [
msg`When a deal's stage changes to Closed Won, create a task assigned to the deal owner, due 7 days after the close date, with title "Post-sale check-in" and the company name in the description.`,
msg`When a new lead is created with source "Website", assign it to the sales rep whose territory (by region/country) matches the lead's address; if no match, assign to the team lead.`,
msg`When any deal with amount over $100,000 has its stage or amount updated, send a notification to the sales channel with the deal name, company, new stage, amount and owner.`,
],
},
{
id: 'record',
label: msg`Create a record`,
Icon: IconPlus,
prompts: [
msg`Add a new company we're in touch with (e.g. name, website, industry). Details: `,
msg`Create a new contact and link them to a company. Details: `,
msg`Log a new deal (company, amount, stage, expected close). Details: `,
],
},
{
id: 'capabilities',
label: msg`See what I can do`,
Icon: IconSparkles,
mode: 'SEND',
prompts: [msg`What can you do?`],
},
];