Skip to content

Commit d4bff9d

Browse files
Udit-takkarCarinaWolliCarinaWolliPeerRichkeithwillcode
authored
feat: Cal.ai Self Serve #2 (calcom#22995)
* feat: Cal.ai Self Serve #2 * chore: fix import and remove logs * fix: update checkout session * fix: type errors and test * fix: imports * fix: type err * fix: type error * fix: tests * chore: save progress * fix: workflow flow * fix: workflow update bug * tests: add unit tests for retell ai webhoo * fix: status code * fix: test and delete bug * fix: add dynamic variables * fix: type err * chore: update unit test * fix: type error * chore: update default prompt * fix: type errors * fix: workflow permissions * fix: workflow page * fix: translations * feat: add call duration * chore: add booking uid * fix: button positioning * chore: update tests * chore: improvements * chore: some more improvements * refactor: improvements * refactor: code feedback * refactor: improvements * feat: enable credits for orgs (calcom#23077) * Show credits UI for orgs * fix stripe callback url when buying credits * give orgs 20% credits * add test for calulating credits --------- Co-authored-by: CarinaWolli <[email protected]> Co-authored-by: Udit Takkar <[email protected]> * fix: types * fix: types * chore: error * fix: type error * fix: type error * chore: mock env * feat: add idempotency key to prevent double charging * chore: add userId and teamId * fix: skip inbound calls * chore: update tests * feat: add feature flag for voice agent * feat: finish test call and other improvements * chore: add alert * chore: update .env.example * chore: improvements * fix: update tests * refactor: remove un necessary * feat: add setup badge * chore: improvements * fix: use referene id * chore: improvements * fix: type error * fix: type * refactor: change pricing logic * refactor: update tests * fix: conflicts * fix: billing link for orgs * fix: types * refactor: move feature flag up * fix: alert and test call credit check * fix: update unit tests * fix: feedback * refactor: improvements * refactor: move handlers to separate files * fix: types * fix: missing import * fix: type * refactor: change general tools functions handling * refactor: use repository * refactor: improvements * fix: types * fix: type errorr * fix: auth check * feat: add creditFor * fix: update defualt prompt * fix: throw error on frontend * fix: update unit tests * fix: use deleteAllWorkflowReminders * refactor: add connect phone number * refactor: improvements * chore: translation * chore: update message * chore: translation * design improvements buy number dialog * add translation for error message * use translation key in error message * refactor: improve connect phone number tab * feat: support un saved workflow to tests * chore: remove un used * fix: remove un used * fix: remove un used * refactor: similify billing --------- Co-authored-by: Carina Wollendorfer <[email protected]> Co-authored-by: CarinaWolli <[email protected]> Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: Keith Williams <[email protected]>
1 parent 6defa1c commit d4bff9d

File tree

118 files changed

+6649
-917
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+6649
-917
lines changed

.env.example

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,10 +383,23 @@ TASKER_ENABLE_EMAILS=0
383383
# Ratelimiting via unkey
384384
UNKEY_ROOT_KEY=
385385

386-
# Used for Cal.ai Enterprise Voice AI Agents
386+
# Used for Cal.ai Voice AI Agents
387387
# https://retellai.com
388388
RETELL_AI_KEY=
389389

390+
# Used for buying phone number for cal ai voice agent
391+
STRIPE_PHONE_NUMBER_MONTHLY_PRICE_ID=
392+
393+
394+
CAL_AI_CALL_RATE_PER_MINUTE=0.29
395+
396+
397+
STRIPE_WEBHOOK_SECRET_BILLING=
398+
399+
400+
# Price for buying a phone number for cal.ai voice agent (Default is 5)
401+
NEXT_PUBLIC_CAL_AI_PHONE_NUMBER_MONTHLY_PRICE=
402+
390403
# Used for the huddle01 integration
391404
HUDDLE01_API_TOKEN=
392405

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,5 @@ apps/auth
9797
!.yarn/sdks
9898
!.yarn/versions
9999
i18n.cache
100+
101+
.claude
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { defaultResponderForAppDir } from "app/api/defaultResponderForAppDir";
2+
3+
import handler from "@calcom/features/calAIPhone/phoneNumberSubscriptionWebhook";
4+
5+
export const GET = defaultResponderForAppDir(handler);

0 commit comments

Comments
 (0)