Skip to content

feat: Cal.ai Self Serve #2 (WIP) #22995

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft

feat: Cal.ai Self Serve #2 (WIP) #22995

wants to merge 10 commits into from

Conversation

Udit-takkar
Copy link
Contributor

@Udit-takkar Udit-takkar commented Aug 9, 2025

What does this PR do?

TODO

  • Use correct new dynamic variables and pass all of them
  • Test whether credits are deducted properly
  • Fix RBAC bug while updating workflow

This PR is the second PR for adding cal ai self serve feature

After first part #22919

#21827

  • Fixes Cal.ai self serve #22973 (GitHub issue number)
  • Fixes CAL-6221 (Linear issue number - should be visible at the bottom of the GitHub issue description)

How to test?

Pre requisite
Make sure you have RETELL_API_KEY and STRIPE_PHONE_NUMBER_MONTHLY_PRICE_ID for phone number billing.

now run in terminal stripe listen --forward-to localhost:3000/api/stripe/webhook --events checkout.session.completed and make sure you are using same secret in STRIPE_WEBHOOK_SECRET_BILLING .

  1. Create a workflow
  2. Select "Call Agent using Cal.ai Voice agent action"

Screenshot 2025-08-12 at 3 33 48 PM

  1. Click on setup to create an agent that would open up a sidebar
    Screenshot 2025-08-12 at 3 35 03 PM

  2. Go to phone number section and click on buy phone number

Screen.Recording.2025-08-05.at.12.59.01.AM.mov
  1. Now you can activate this on some event types and you see a new phone number input on the booking page (Just like SMS reminder workflow action)

Screenshot 2025-08-05 at 1 02 57 AM

When you book a meeting a task is scheduled in tasker which can be executed when to make a request to http://localhost:3000/api/tasks/cron.

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • I have updated the developer docs in /docs if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

How should this be tested?

Copy link
Contributor

coderabbitai bot commented Aug 9, 2025

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/cal-ai-2

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added the ❗️ .env changes contains changes to env variables label Aug 9, 2025
@keithwillcode keithwillcode added core area: core, team members only enterprise area: enterprise, audit log, organisation, SAML, SSO labels Aug 9, 2025
Copy link

vercel bot commented Aug 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
cal ⬜️ Ignored Aug 12, 2025 8:48am
cal-eu ⬜️ Ignored Aug 12, 2025 8:48am

Copy link

linear bot commented Aug 12, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core area: core, team members only enterprise area: enterprise, audit log, organisation, SAML, SSO ❗️ .env changes contains changes to env variables High priority Created by Linear-GitHub Sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cal.ai self serve
2 participants