41 lines
1.7 KiB
TypeScript
41 lines
1.7 KiB
TypeScript
export const SMS_TEMPLATES = {
|
|
PROPOSAL_SUMMARY: (summary: string, _proposalId: string) =>
|
|
`I'd like to: ${summary}\n\nReply YES to apply or NO to cancel.`,
|
|
|
|
APPLIED: (summary: string) =>
|
|
`Done! ${summary} Your site will update in a moment.`,
|
|
|
|
AUTO_APPLIED: (summary: string) =>
|
|
`Done! I went ahead and ${summary} Your site will update in a moment.`,
|
|
|
|
REJECTED: () =>
|
|
`No problem — I cancelled that change. Just text me whenever you'd like to make an edit!`,
|
|
|
|
LLM_UNAVAILABLE: () =>
|
|
`Sorry, I'm having trouble processing that right now. Could you try again in a few minutes?`,
|
|
|
|
ROUTING_AMBIGUOUS: (options: string) =>
|
|
`I'm not sure which part of your site you mean. Could you be more specific? Your site has: ${options}`,
|
|
|
|
ROUTING_NO_MATCH: (list: string) =>
|
|
`I couldn't find a matching section on your site. You currently have: ${list}. Want to try again?`,
|
|
|
|
PROPOSAL_EXPIRED: () =>
|
|
`That change request has expired. Just send your edit again and I'll set it up!`,
|
|
|
|
PROPOSAL_ALREADY_APPLIED: () =>
|
|
`That change was already made to your site!`,
|
|
|
|
INVALID_CONFIRM: () =>
|
|
`Just reply YES to apply or NO to cancel.`,
|
|
|
|
RATE_LIMITED: () =>
|
|
`You've been busy! Give me a few minutes to catch up, then try again.`,
|
|
|
|
MMS_NOT_SUPPORTED: () =>
|
|
`I can't handle images yet — just describe what you'd like to change in a text message!`,
|
|
|
|
HELP: () =>
|
|
`I can help you update your website right from here! Just text me what you'd like to change. For example:\n\n- "Change the headline to Welcome Home"\n- "Hide the testimonials"\n- "Add an event: Wine Tasting, June 15, 7pm"\n- "What's on my site right now?"\n\nI'll show you the change first, and you reply YES to make it live or NO to cancel.`,
|
|
} as const;
|