Home / Companies / Vonage / Blog / Post Details
Content Deep Dive

Build an SMS Bot on Glitch with Hapi.js and the Nexmo Messages API

Blog post from Vonage

Post Details
Company
Date Published
Author
Hui Jing Chen
Word Count
1,716
Language
English
Hacker News Points
-
Summary

This tutorial guides developers through building a simple bot on Glitch that can provide random facts about numbers using the Nexmo Messages API and NumbersAPI. The bot is built using Hapi.js, a Node.js framework, and utilizes a virtual phone number to send and receive SMS messages. The bot's functionality includes receiving inbound SMS messages, processing the message content, and sending a response with a random fact from NumbersAPI if the content is a whole number. The code demonstrates how to integrate Nexmo's Messages API and Hapi.js into a Glitch project, allowing developers to build their own custom bots using these APIs.