Skip to content

Scheduling infrastructure for absolutely everyone.

feat: add number to call in web call (#23769)

Udit Takkara977fb49709a
diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json
index c924c706b02..08b937b7f11 100644
--- a/apps/web/public/static/locales/en/common.json
+++ b/apps/web/public/static/locales/en/common.json
@@ -1717,6 +1717,8 @@
"event_duration_info": "The event duration",
"event_time_info": "The event start time",
"event_type_not_found": "EventType not Found",
+ "number_to_call_variable": "Number to call",
+ "number_to_call_info": "The phone number of the user you are calling",
"location_variable": "Location",
"location_info": "The location of the event",
"additional_notes_variable": "Additional notes",
diff --git a/packages/features/calAIPhone/providers/retellAI/services/CallService.ts b/packages/features/calAIPhone/providers/retellAI/services/CallService.ts
index 966d4d0a1db..e6f01183ada 100644
--- a/packages/features/calAIPhone/providers/retellAI/services/CallService.ts
+++ b/packages/features/calAIPhone/providers/retellAI/services/CallService.ts
@@ -228,6 +228,7 @@ export class CallService {
ADDITIONAL_NOTES: "This is a test web call to verify the AI phone agent",
EVENT_START_TIME_IN_ATTENDEE_TIMEZONE: "2:00 PM",
EVENT_END_TIME_IN_ATTENDEE_TIMEZONE: "2:30 PM",
+ NUMBER_TO_CALL: "+919876543210",
eventTypeId: eventTypeId.toString(),
};
diff --git a/packages/features/ee/workflows/components/AgentConfigurationSheet.tsx b/packages/features/ee/workflows/components/AgentConfigurationSheet.tsx
index 18cdc59e87c..b0ccc118b7e 100644
--- a/packages/features/ee/workflows/components/AgentConfigurationSheet.tsx
+++ b/packages/features/ee/workflows/components/AgentConfigurationSheet.tsx
@@ -457,7 +457,7 @@ export function AgentConfigurationSheet({
{!readOnly && (
<AddVariablesDropdown
addVariable={addVariableToGeneralPrompt}
- variables={DYNAMIC_TEXT_VARIABLES}
+ variables={[...DYNAMIC_TEXT_VARIABLES, "number_to_call"]}
addVariableButtonClassName="border rounded-[10px] py-1 px-1"
/>
)}