Skip to content

Commit

Permalink
feat: change customer greeting message
Browse files Browse the repository at this point in the history
  • Loading branch information
PfisterFactor committed Nov 13, 2024
1 parent 83d5445 commit 6df6ab1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/external/twilio/TwilioIntegration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class TwilioIntegration
);
});
await context.run("Send customer message", async () => {
const systemMessaging = SystemGreetingMessage(dealerInformation.name);
const systemMessaging = SystemGreetingMessage(dealerInformation.name, leadState.Lead.PreferredMethodOfContact);
await this.sendSystemMessage(
conversation.sid,
systemMessaging,
Expand Down
4 changes: 2 additions & 2 deletions src/external/twilio/Web2TextMessagingStrings.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Web2TextLead } from "../../types";

export function SystemGreetingMessage(dealerName: string): string {
return `This messaging conversation is being facilitated by Broadlume, a flooring software company. We have connected you with ${dealerName}. Please text STOP to opt out of communication.`;
export function SystemGreetingMessage(dealerName: string, contactPreference: string): string {
return `Broadlume, a flooring software company, is facilitating this messaging conversation. We have connected you with ${dealerName}, and they will respond via ${contactPreference} shortly. Please text STOP to opt out of communication.`;
}
export function DealerGreetMessage(
lead: Web2TextLead,
Expand Down

0 comments on commit 6df6ab1

Please sign in to comment.