/** * Signal configuration * * Environment variables: * - SIGNAL_AUTO_GROUP_NAME_TEMPLATE: Template for auto-created group names (default: "Support Request: {conversationId}") * Available placeholders: {conversationId} */ /** * Get the Signal auto-group name template from environment variable * Defaults to "Support Request: {conversationId}" if not set */ export function getSignalAutoGroupNameTemplate(): string { const template = process.env.SIGNAL_AUTO_GROUP_NAME_TEMPLATE; if (!template) { return "Support Request: {conversationId}"; } return template; } /** * Build a Signal group name from the template and conversation ID */ export function buildSignalGroupName(conversationId: string): string { const template = getSignalAutoGroupNameTemplate(); return template.replace('{conversationId}', conversationId); }