{"id":48649338,"url":"https://github.com/telecmi/piopiy_node","last_synced_at":"2026-04-10T08:30:13.859Z","repository":{"id":57324552,"uuid":"131838316","full_name":"telecmi/piopiy_node","owner":"telecmi","description":"The official NodeJS SDK for PIOPIY - a complete Voice AI Agent and CPaaS Platform  Easily build intelligent Voice Agents, manage complex call flows (queues, human handoff), execute bulk voice campaigns, and send multi-channel notifications via WhatsApp and SMS.","archived":false,"fork":false,"pushed_at":"2026-02-27T11:32:01.000Z","size":241,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-27T16:36:02.496Z","etag":null,"topics":["bulk-campaigns","cpaas-platform","human-handoff","piopiy","sms-api","telecmi","voice-ai-agents","voice-api","whatsapp-api"],"latest_commit_sha":null,"homepage":"https://doc.telecmi.com/piopiy","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/telecmi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-05-02T11:00:10.000Z","updated_at":"2026-02-27T11:29:25.000Z","dependencies_parsed_at":"2024-08-08T08:25:57.262Z","dependency_job_id":"22b9dbd2-7349-4cbf-9baf-93fb70620adc","html_url":"https://github.com/telecmi/piopiy_node","commit_stats":{"total_commits":18,"total_committers":2,"mean_commits":9.0,"dds":0.2777777777777778,"last_synced_commit":"9d233235639ff8567fa34e132e17088ca6f1434f"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/telecmi/piopiy_node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telecmi%2Fpiopiy_node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telecmi%2Fpiopiy_node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telecmi%2Fpiopiy_node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telecmi%2Fpiopiy_node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/telecmi","download_url":"https://codeload.github.com/telecmi/piopiy_node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telecmi%2Fpiopiy_node/sbom","scorecard":{"id":872990,"data":{"date":"2025-08-11","repo":{"name":"github.com/telecmi/piopiy_node","commit":"e9fe9b6f464d891c7ad7c1ccb1de42added56df8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"15 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-8hc4-vh64-cxmj","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T04:53:15.457Z","repository_id":57324552,"created_at":"2025-08-24T04:53:15.457Z","updated_at":"2025-08-24T04:53:15.457Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31635036,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T07:40:12.752Z","status":"ssl_error","status_checked_at":"2026-04-10T07:40:11.664Z","response_time":98,"last_error":"SSL_read: 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":["bulk-campaigns","cpaas-platform","human-handoff","piopiy","sms-api","telecmi","voice-ai-agents","voice-api","whatsapp-api"],"created_at":"2026-04-10T08:30:13.007Z","updated_at":"2026-04-10T08:30:13.841Z","avatar_url":"https://github.com/telecmi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Piopiy Node.js SDK\n\nProduction-ready Node.js SDK for Piopiy Voice Orchestrator APIs. Build AI voice agents, direct voice calls, PCMO flows, and flow-based call routing.\n\n## Prerequisites\n\n- Node.js 14 or higher\n- A Piopiy account and API token (from [Piopiy Dashboard](https://piopiy.com))\n\n## Installation\n\n```bash\nnpm install piopiy\n```\n\n## Quick Start\n\n```javascript\nconst { Piopiy } = require('piopiy');\n\nconst client = new Piopiy(process.env.PIOPIY_TOKEN || \"YOUR_BEARER_TOKEN\");\n```\n\n## Main Examples\n\n### 1) AI Single Call\n\n```javascript\nasync function main() {\n    const response = await client.ai.call({\n        caller_id: \"919999999999\",\n        to_number: \"918888888888\",\n        agent_id: \"bdd32bcb-767c-40a5-be4a-5f45eeb348a6\"\n    });\n    console.log(response);\n}\n\nmain().catch(console.error);\n```\n\nExample code: [`example/ai_agent/02_ai_call_minimal.js`](example/ai_agent/02_ai_call_minimal.js)\n\n### 2) AI Call With Failover\n\n```javascript\nasync function main() {\n    const response = await client.ai.call({\n        caller_id: \"919999999999\",\n        to_number: \"918888888888\",\n        agent_id: \"bdd32bcb-767c-40a5-be4a-5f45eeb348a6\",\n        app_id: \"your_app_id\",\n        failover: {\n            agent_id: \"2f2ae3ad-7ff6-4011-b10e-9ca1f8f8d1a2\",\n            ring_timeout_sec: 20,\n            machine_detection: true\n        }\n    });\n    console.log(response);\n}\n\nmain().catch(console.error);\n```\n\nFailover rules:\n- `app_id` is required when `failover` is used.\n- `failover.agent_id` is required.\n- Failover agent must differ from primary `agent_id`.\n- `failover.strategy` is optional.\n\nExample code: [`example/ai_agent/04_ai_call_with_failover.js`](example/ai_agent/04_ai_call_with_failover.js)\n\n### 3) Voice Direct Call\n\n```javascript\nasync function main() {\n    const response = await client.voice.call({\n        caller_id: \"919999999999\",\n        to_number: \"918888888888\",\n        app_id: \"your_app_id\"\n    });\n    console.log(response);\n}\n\nmain().catch(console.error);\n```\n\nExample code: [`example/voice_call/01_voice_call_direct.js`](example/voice_call/01_voice_call_direct.js)\n\n### 4) PCMO Simple Call\n\n```javascript\nasync function main() {\n    const pipeline = client.pcmo.pipeline()\n        .connect(\n            { caller_id: \"919999999999\" },\n            [{ type: \"pstn\", number: \"918888888888\" }]\n        )\n        .build();\n\n    const response = await client.pcmo.call({\n        caller_id: \"919999999999\",\n        to_number: \"918888888888\",\n        app_id: \"your_app_id\",\n        pipeline\n    });\n    console.log(response);\n}\n\nmain().catch(console.error);\n```\n\nExample code: [`example/pcmo_call/02_pcmo_call_minimal.js`](example/pcmo_call/02_pcmo_call_minimal.js)\n\n### 5) Flow Call (Minimal)\n\n```javascript\nasync function main() {\n    const response = await client.flow.call({\n        flow_id: \"7f4d89c7-3485-45c5-9016-f45a47cd885c\",\n        org_id: \"f89dd77d-c226-4ff2-b88c-6d7e4f5a88e2\",\n        caller_id: \"919999999999\",\n        to_number: \"918888888888\",\n        app_id: \"your_app_id\"\n    });\n    console.log(response);\n}\n\nmain().catch(console.error);\n```\n\nExample code: [`example/flow_call.js`](example/flow_call.js)\n\n## Other Actions And Full Docs\n\n- AI transfer/hangup + full AI docs: [`docs/examples/ai_agent/README.md`](docs/examples/ai_agent/README.md)\n- Voice transfer/hangup + full voice docs: [`docs/examples/voice_call/README.md`](docs/examples/voice_call/README.md)\n- PCMO call/transfer + full pipeline docs: [`docs/examples/pcmo_call/README.md`](docs/examples/pcmo_call/README.md)\n- Flow call docs: [`docs/examples/flow_call/README.md`](docs/examples/flow_call/README.md)\n\n## Extra Example Code Indexes\n\n- AI examples: [`example/ai_agent`](example/ai_agent)\n- Voice examples: [`example/voice_call`](example/voice_call)\n- PCMO examples: [`example/pcmo_call`](example/pcmo_call)\n- Flow example: [`example/flow_call.js`](example/flow_call.js)\n\n## Legacy Action Helpers\n\nThis package also exports legacy helpers used by older integrations:\n- `PiopiyAction`\n- `StreamAction`\n- `PipelineBuilder`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelecmi%2Fpiopiy_node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftelecmi%2Fpiopiy_node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelecmi%2Fpiopiy_node/lists"}