Content Deep Dive
How to Build Your First Slack Bot in 5 Minutes using PHP
Blog post from Twilio
Post Details
Company
Date Published
Author
Ricky Robinett
Word Count
1,177
Language
English
Hacker News Points
-
Summary
You've built a Slack bot using PHP in just 5 minutes, which reads incoming messages and repeats them back with minor adjustments. You then upgraded the bot to use the Twilio Lookup API, allowing users to find out who's calling them by sending "!lookup" followed by a phone number. The bot handles errors and edge cases, such as when it can't find the caller's name or when an invalid phone number is provided. With this upgrade, you've created a more useful Slack bot that enhances user experience.