{"id":21601685,"url":"https://github.com/devstar2004/linebase","last_synced_at":"2025-06-25T18:31:36.521Z","repository":{"id":235202529,"uuid":"790254497","full_name":"DevStar2004/linebase","owner":"DevStar2004","description":"Twilio base whatsapp bot OpenAI's Assistant","archived":false,"fork":false,"pushed_at":"2024-04-22T15:51:21.000Z","size":86,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T13:19:59.864Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DevStar2004.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-04-22T14:46:24.000Z","updated_at":"2024-04-22T15:51:25.000Z","dependencies_parsed_at":"2024-04-22T17:21:21.166Z","dependency_job_id":"2b643a55-bcf1-4090-bb3d-8f9c126f143b","html_url":"https://github.com/DevStar2004/linebase","commit_stats":null,"previous_names":["devstar2004/linebase"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DevStar2004/linebase","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevStar2004%2Flinebase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevStar2004%2Flinebase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevStar2004%2Flinebase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevStar2004%2Flinebase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevStar2004","download_url":"https://codeload.github.com/DevStar2004/linebase/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevStar2004%2Flinebase/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261930641,"owners_count":23231915,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-11-24T19:10:15.483Z","updated_at":"2025-06-25T18:31:36.284Z","avatar_url":"https://github.com/DevStar2004.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is the migration of current whatsapp bot functinality to twilio based whats app bot. \n\n## Messaging Service -\n\nAs for the sender on Twilio, we are utilizing the messaging service available at Twilio Messaging Service, with the number +447897037185 configured as the sender in the service.\n\n## Incoming Messages handler - \n\nTo facilitate the reception of messages through Twilio, We've developed a REST APIs in\nsrc/whatsapp/twClient.ts file and configured it as the incoming message webhook on Twilio.\n\nYou can update the webhook url on this page -\nhttps://console.twilio.com/us1/service/sms/MG34baca07a010672ee5c8e6190ea70965/sms-serv[…]FMG34baca07a010672ee5c8e6190ea70965%3Fx-target-region%3Dus1\n\n## Message Templates COnfiguration -\n\nFor the menu and greeting content, We've created templates on the Twilio side, and in the code, Its being sent using the template ID. You can review and edit the templates https://console.twilio.com/us1/develop/sms/services?frameUrl=%2Fconsole%2Fsms%2Fservices%3Fx-target-region%3Dus1. \n\nFor the theme menu template we've assigned a unique id to each menu. That id is comes in the \nincoming message paylod when user select any menu item. We've defined the repective AI prompt\nfor each menu item selection in src/config/prompt.ts file.\n\n\n## Important files - \n\n1. Twilio Client - src/utils/twClient/index.ts\n2. Initialization and Webhooks - src/whatsapp/twClient.ts\n3. Message handling logic - src/whatsapp/twCommands.ts\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevstar2004%2Flinebase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevstar2004%2Flinebase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevstar2004%2Flinebase/lists"}