First cut
This commit is contained in:
34
server/src/sms/templates.ts
Normal file
34
server/src/sms/templates.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
export const SMS_TEMPLATES = {
|
||||
PROPOSAL_SUMMARY: (summary: string, proposalId: string) =>
|
||||
`Proposed change: ${summary}\n\nReply YES to apply or NO to cancel.`,
|
||||
|
||||
APPLIED: (summary: string) =>
|
||||
`Done! ${summary} Your site will update shortly.`,
|
||||
|
||||
REJECTED: () =>
|
||||
`Got it — change cancelled. Send a new message anytime.`,
|
||||
|
||||
LLM_UNAVAILABLE: () =>
|
||||
`Sorry, I couldn't process that right now. Please try again in a few minutes.`,
|
||||
|
||||
ROUTING_AMBIGUOUS: (options: string) =>
|
||||
`I'm not sure which section you mean. Did you mean: ${options}? Reply with the number or name.`,
|
||||
|
||||
ROUTING_NO_MATCH: (list: string) =>
|
||||
`I couldn't find a section matching that request. Your current sections are: ${list}. Try again?`,
|
||||
|
||||
PROPOSAL_EXPIRED: () =>
|
||||
`That change request has expired. Please send your edit again to start over.`,
|
||||
|
||||
PROPOSAL_ALREADY_APPLIED: () =>
|
||||
`That change was already applied.`,
|
||||
|
||||
INVALID_CONFIRM: () =>
|
||||
`Reply YES to apply or NO to cancel.`,
|
||||
|
||||
RATE_LIMITED: () =>
|
||||
`You've sent several requests recently. Please wait a few minutes before trying again.`,
|
||||
|
||||
MMS_NOT_SUPPORTED: () =>
|
||||
`Image uploads aren't supported yet. Please describe your change in text.`,
|
||||
} as const;
|
||||
Reference in New Issue
Block a user