{"id":16221927,"url":"https://github.com/bajajcodes/caller-assistant-prompt","last_synced_at":"2026-02-15T23:31:42.359Z","repository":{"id":276411210,"uuid":"771370836","full_name":"bajajcodes/caller-assistant-prompt","owner":"bajajcodes","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-22T19:42:29.000Z","size":588,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T19:03:11.612Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bajajcodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-13T07:13:07.000Z","updated_at":"2025-02-22T19:42:46.000Z","dependencies_parsed_at":"2025-02-08T03:29:45.968Z","dependency_job_id":"db7336b8-ba43-4adf-9aeb-0146fe53184e","html_url":"https://github.com/bajajcodes/caller-assistant-prompt","commit_stats":null,"previous_names":["bajajcodes/caller-assistant-prompt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bajajcodes/caller-assistant-prompt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bajajcodes%2Fcaller-assistant-prompt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bajajcodes%2Fcaller-assistant-prompt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bajajcodes%2Fcaller-assistant-prompt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bajajcodes%2Fcaller-assistant-prompt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bajajcodes","download_url":"https://codeload.github.com/bajajcodes/caller-assistant-prompt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bajajcodes%2Fcaller-assistant-prompt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29492508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T19:29:10.908Z","status":"ssl_error","status_checked_at":"2026-02-15T19:29:10.419Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T12:10:27.346Z","updated_at":"2026-02-15T23:31:42.332Z","avatar_url":"https://github.com/bajajcodes.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# caller-assistant-prompt\n\n## Setting Up Your Project\n\n**Before you begin:**\n\n- Make sure you have Node.js installed. Check by running `node -v` in your terminal. Download it from [https://nodejs.org/en](https://nodejs.org/en) if needed.\n\n- Switch to `feat/dashboard` Branch.\n\n**1. Environment Variables:**\n\n- Create a file named `.env` in your project's root directory.\n- Fill it with the following lines, replacing placeholders with your actual credentials:\n\n```sh\nHOST={{HOST}}\nTWILIO_ACCOUNT_SID={{TWILIO_ACCOUNT_SID}}\nTWILIO_AUTH_TOKEN={{TWILIO_AUTH_TOKEN}}\nTWILIO_FROM_NUMBER={{TWILIO_FROM_NUMBER}}\nPORT={{PORT}}\nDEEPGRAM_API_KEY={{DEEPGRAM_API_KEY}}\nTWILIO_API_KEY={{TWILIO_API_KEY}}\nTWILIO_API_SECRET={{TWILIO_API_SECRET}}\nOPEN_AI_KEY={{OPEN_AI_KEY}}\nREDIS_CLIENT_URL={{REDIS_CLIENT_URL}}\n```\n\n**2. Install Dependencies:**\n\n- Open your terminal and navigate to your project's `backend` directory.\n- Run `npm install` to install all dependencies.\n\n**3. Running a Redis Server Locally with Docker (for development only):**\nThis step is optional but recommended for local development. It allows you to run a Redis server within a Docker container.\n\n- Open your terminal.\n- Install Docker.\n- Pull latest Redis image.\n\n```sh\ndocker pull redis\n```\n\n- Run the following command to start a Redis container in the background:\n\n```sh\n docker run --name {{redis-name}} -p 6379:6379 -d redis\n```\n\nReplace {{redis-name}} with name of your choice.\n\n- Verify if the Redis container is running:\n\n```sh\ndocker ps\n```\n\nThis should list your running containers, including the myredis container you just started.\n\n- Connect to the Redis Container\n\n```sh\ndocker exec -it {{redis-name}} sh\n```\n\n- Type `redis-cli` into terminal for testing Redis container, then type `ping` to test redis container.\n\n```sh\nredis-cli\n```\n\n```sh\n127.0.0.1:6379\u003eping\n```\n\nThis will print PONG.\n\n- Using REDIS_CLIENT_URL\n  After running the Redis container, go back to your .env file and set the REDIS_CLIENT_URL environment variable.\n\n```sh\nREDIS_CLIENT_URL=redis://localhost:6379\n```\n\n**4. Run the Project:**\n\n- (Optional) Type into terminal `npm run ui` to copy frontend build if doesn't exisits as `dist` inside `backend` directory.\n- Simply run `npm run start` in your terminal.\n- This will start the project and automatically reload any changes you make.\n\n**That's it!** Your project should now be running, typically on port 3000 (check your terminal output for confirmation).\n\n## How to Hit the `/makeoutboundcall` Endpoint\n\n**Before you begin:**\n\n- Make sure you have Postman or Other Similar appication installed for making outbound calls.\n\n**1. API Endpoint**\n\n```sh\nHOST/makeoutboundcall\n```\n\n\u003e Replace ‘HOST’ with the actual domain name hosting the API.\n\n**2. Method**\n\nThis endpoint accept a POST request since you're initiating an outbound call.\n\n**3. Payload Data**\n\n_Payload Structure_\n\n- **ivrMenu:** An array of objects configuring the IVR (Interactive Voice Response) menu.\n  - _intent:_ Represents the expected caller's purpose for the call.\n  - _response:_ (Likely) what the IVR system should reply with.\n  - _triggers:_ Words or phrases that would match this intent.\n- **providerData:** An object containing detailed information about the healthcare provider associated with the call. The Payer number key is expected to be named as `phoneNumber`.\n\n_Example Payload Data:_\n\n```json\n{\n  \"ivrMenu\": [\n    {\n      \"intent\": \"Provider Type\",\n      \"triggers\": [\"health care provider\"],\n      \"response\": \"health care provider\"\n    },\n    {\n      \"intent\": \"Enter NPI\",\n      \"response\": \"{providerNpi}\",\n      \"triggers\": [\"providers npi\"]\n    },\n    {\n      \"intent\": \"Verify NPI\",\n      \"response\": \"1\",\n      \"triggers\": [\"{providerNpi} correct\"]\n    },\n    {\n      \"intent\": \"Calling From\",\n      \"triggers\": [\"behavioral health\"],\n      \"response\": \"3\"\n    },\n    {\n      \"intent\": \"Calling About\",\n      \"response\": \"2\",\n      \"triggers\": [\"eligibility\"]\n    },\n    {\n      \"intent\": \"Sepciality\",\n      \"response\": \"{providerSpecialty}\",\n      \"triggers\": [\"sepciality type\"]\n    }\n  ],\n  \"providerData\": {\n    \"ticketId\": 170958,\n    \"ticketName\": \"Application Follow-up\",\n    \"taskType\": \"Application followup by Phone\",\n    \"payerName\": \"United Healthcare Insurance Company (Washington)\",\n    \"providerNpi\": \"1033400346\",\n    \"providerName\": \"JILL BISHOP\",\n    \"taxId\": \"933437607\",\n    \"serviceState\": \"WA\",\n    \"speciality\": \"Mental Health Counselor\",\n    \"locationAddress\": \"1610 Scott Place  Bremerton WA 98310\",\n    \"specialityType\": \"Behavioral Health Providers\",\n    \"phoneNumber\": \"8776140484\",\n    \"callbackNumber\": \"8264551832\",\n    \"applicationSubmitionDate\": \"04/19/2024 12:00:00 AM EST\",\n    \"applicationTrackingNumber\": \"\"\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbajajcodes%2Fcaller-assistant-prompt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbajajcodes%2Fcaller-assistant-prompt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbajajcodes%2Fcaller-assistant-prompt/lists"}