{"id":21455526,"url":"https://github.com/hookdeck/omnitext","last_synced_at":"2025-07-13T11:38:34.951Z","repository":{"id":220231872,"uuid":"751103326","full_name":"hookdeck/omnitext","owner":"hookdeck","description":"Have conversations across SMS and Email with Vonage and Postmark using Hookdeck as a serverless message router","archived":false,"fork":false,"pushed_at":"2024-02-21T00:14:49.000Z","size":293,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T13:13:48.547Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/hookdeck.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,"publiccode":null,"codemeta":null}},"created_at":"2024-01-31T23:42:57.000Z","updated_at":"2024-02-01T10:47:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"12ac4d85-af1e-495f-b4fc-d3d70849d9ad","html_url":"https://github.com/hookdeck/omnitext","commit_stats":null,"previous_names":["hookdeck/omnitext"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hookdeck%2Fomnitext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hookdeck%2Fomnitext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hookdeck%2Fomnitext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hookdeck%2Fomnitext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hookdeck","download_url":"https://codeload.github.com/hookdeck/omnitext/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243966068,"owners_count":20375992,"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-23T05:12:31.879Z","updated_at":"2025-03-17T03:24:41.136Z","avatar_url":"https://github.com/hookdeck.png","language":"JavaScript","readme":"# OmniText\n\nHave conversations across SMS and Email with [Vonage APIs](https://developer.vonage.com?ref=github-omnitext) and [Postmark](https://postmarkapp.com?ref=github-omnitext), using [Hookdeck](https://hookdeck.com?ref=github-omnitext) as a serverless message router.\n\n## Prerequisites\n\n- A [Hookdeck account](https://dashboard.hookdeck.com/signup?ref=github-omnitext) to handle webhooks, transform payloads, and route messages between Vonage and Postmark\n- A [Vonage API account](https://developer.vonage.com/sign-up?ref=github-omnitext) to send and receive SMS. You will also need a phone number.\n- A [Postmark account](https://developer.vonage.com/sign-up?ref=github-omnitext) to send and receive email\n- Node.js to run the script in this repo\n\n## Get started\n\nClone the repo:\n\n```\ngit clone https://github.com/hookdeck/omnitext.git\ncd omnitext\n```\n\nInstall dependencies:\n\n```\nnpm i\n```\n\nCreate a `.env` file and add the required configuration:\n\n```\ncp .env-example .env\n```\n\nUpdate the contents as described below:\n\n- `REPLY_TO_EMAIL`: Head to your Postmark dashboard, select your Postmark server, select the **Default Inbound Stream** -\u003e **Settings**, and the email address is within the **Inbound** section.\n- `FROM_EMAIL` and `TO_EMAIL`: Use an email address you have access to from your own domain or your own email address.\n- `TO_NUMBER`: Use your own number during testing\n- `FROM_NUMBER`: Within the Vonage dashboard open **Numbers** -\u003e **Your Numbers**.\n- `HOOKDECK_API_KEY`: See [Hookdeck workspace docs](https://hookdeck.com/docs/workspaces?ref=github-omnitext#api-key)\n- `VONAGE_API_KEY` and `VONAGE_API_SECRET`: You'll see these credentials at the very top of the Vonage API dashboard home page.\n- `POSTMARK_SERVER_API_TOKEN`: From the Postmark dashboard, select your Postmark server and then select **API Tokens**. The token is in the **Server API** section.\n- `SUBJECT`: The subject used in the email\n\nRun the `push.mjs` script to create two connections in Hookdeck to manage the omnichannel and omnidirectional communication between SMS via Vonage and email via Postmark:\n\n```\nnpm run push\n```\n\nThe output will be similar to the following:\n\n```\nsyncing SMS to Email transformation\n✅ success\nsyncing SMS to Email connection\n✅ success\nsyncing Email to SMS transformation\n✅ success\nsyncing Email to SMS connection\n✅ success\n\nSet your Vonage webhook URL for your phone number to \"https://hkdk.events/{unique-path}\"\nSet your Postmark webhook URL for your inbound stream to \"https://hkdk.events/{unique-path}\"\n```\n\nHead to your workspace in Hookdeck and you will see two [connections](https://hookdeck.com/docs/connections?ref=github-omnitext) set up as follows:\n\n![Two connections in the Hookdeck dashboard](docs/omnitext-connections.png)\n\nHead to the Vonage Dashboard, select **Numbers** -\u003e **Your Numbers**, and click the pencil icon under the **Manage** column for your Vonage phone number. Set the SMS Inbound Webhook URL to one indicated in the `npm run push` output.\n\n![Set your Vonage phone number webhook URL](docs/vonage-phone-number-config.png)\n\nHead to your Postmark dashboard, select your Postmark server, select the **Default Inbound Stream** -\u003e **Settings**, and set your **Inbound webhook** to the one indicated in the `npm run push` output.\n\n![Postmark Webhook config](docs/postmark-webhooks-config.png)\n\nYou can now:\n\n1. Send an SMS message to the `FROM_NUMBER` (the Vonage phone number) and an email will be sent to the `TO_EMAIL`\n2. Sending an email to the `REPLY_TO_EMAIL` will send an SMS message to the `TO_NUMBER`\n\nWith that, you have a conversation across SMS and email.\n\n## Feedback and issues\n\nPlease file feedback and issues over on the [OmniText GitHub repo](https://github.com/hookdeck/omnitext/issues/new/choose).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhookdeck%2Fomnitext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhookdeck%2Fomnitext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhookdeck%2Fomnitext/lists"}