In this post we’re going to show you how to supercharge your Amazon Connect contact flows using AWS Lambda, Node.js and Twilio. We’ll build a contact flow to detect if a customer is calling from a mobile phone and, when they are, send their order details to them via SMS at the completion of the call. Let’s get started.
Assembling Your Tools
There are a few things you’ll need to set up before you start writing code:
- Node.js and npm: We build our Lambda functions with Node.js and install our dependencies using npm
- An AWS account: For all the AWS goodies we’ll use throughout this post
- A Twilio account: This account will let us make API requests to lookup phone number details and send SMS messages
Lookup Phone Number Type Using Amazon Lambda and Twilio Lookup
We can determine whether our customer is calling from a mobile, …
So you want to build a Slack bot using PHP? You’re in the right place. This blog post will walk you through building your first Slack bot using PHP in 5 minutes. The clock is ticking, let’s get started.
Creating Our Bot
Before we write any code, we need to configure our Slack bot within our Slack team. Head over to https://[yourslackteam].slack.com/apps/build/custom-integration and then click “Bots”.
Give your bot a clever name. Or if you’re lacking inspiration feel free to use something simple like ‘php_bot’ and then click “Add Integration”.
The next page will give you an API token which you’ll want to keep handy. We’ll be making use of it shortly.
Using RTM with PHP using slack-client…
We’re wrapping up our first SIGNAL Conference in London and we’re well chuffed.
Today, developers from around the world gathered to hone their craft and get a look at a few of the new tools we’ve been cooking up at Twilio. Whether you joined us in London, or you followed along from a distance, thank you.
Before we turn off the lights at The Brewery, let’s run through some of the knowledge dropped and announcements made over the past 12 hours at SIGNAL London.
There were launches, live coded games of Flappybird, cyborgs hacking their hands, and ML scripts that classify objects as huggable or not huggable. Let’s get down to it:
Announcing Voice Insights for WebRTC: https://t.co …
Don’t have your SIGNAL London ticket? Register now using promo code BLOG50 to get £50 off.
Whether you’re building a multiplayer mobile game or adding real-time presence to your contact center, Sync takes care of all your state management in the cloud so you can focus on building features for your users. It’s already been proven at scale as the real-tim …
Twilio’s “no shenanigans” approach to data privacy extends to all customers and users – wherever you’re located. As Twilio’s international presence continues to expand, we are providing more detail at a country level about the types of law enforcement requests Twilio has received.
You can learn about these requests in our transparency report for the first half of 2016.
Twilio Transparency Report – First Half of 2016
The objective of Twilio’s semi-annual transparency report is to inform you of the total volume of government requests for information received by Twilio, how Twilio responded to the requests and how often Twilio notified users of the requests.
- You can view our most recent transparency report for the first half of 2016 here.
- You can download a text file of our transparency report from our GitHub repository here.
Advocating for Privacy and Security
There’s a complicated balance between the responsibility …
Today we’re celebrating a new milestone together. There are now 1 million of your fellow developers building with Twilio. Whether you’ve been here 7 years or 7 minutes, you make up this million. Thank you for being a part of this.
Your growth as developers is inextricably tied to Twilio’s growth. Watching you build ambitiously leads us to create tools that serve that ambition. You’re out there conquering development’s Koopa Troopas. We aim to offer you a suite of tools you need to make that work easier — a programmatic super mushroom, cape feather, or fire flower.
Back in 2012, when Twilio hit 100,000 developers on the platform, we invited the community to share their milestones. The funny thing about placing milestones is that you can see how far you’ve travelled since placing the last one. We caught up with a few developers who have come a long way …
Let’s celebrate IP Messaging with an old-fashioned Twilio contest. Spend the rest of the month working on your sickest, most mind-blowing hack and then submit it here. If you use IP Messaging, you’re eligible for the grand prize:
- BB-8 Life-Size Aluminum LED Floor Lamp
- One ticket to SIGNAL, our developer conference for communications, May 24-25th at Pier 27 in San Francisco
- $100 in Twilio credit
Bonus points for keeping the community updated as you build via tweets, tutorials or Twitch streams.
Looking for inspiration? Check out these posts to help you get started:
We believe in “no shenanigans” when it comes to data privacy. In that spirit, we’d like to draw your attention to two documents: our transparency report for the second half of 2015 and our revised Privacy Notices.
The objective of our semi-annual transparency report is to inform you of the total volume of government requests for information received by Twilio, how Twilio responded to the requests and how often Twilio notified users of the requests.
Getting the Band Together
There are just two prerequisites to our application before we get started:
With that out of the way we can start hacking.
The First Star I See May Not Be A Star
We’ll start by creating a Meteor project called
meteor create simplechat
We can run our app straight out of the box by going into the directory in which it was just created and running the
meteor command. Now browse to http://localhost:3 …
When I wrote my first line of Swift code I immediately had visions of being able to use this beautiful programming language for more than just iOS and OSX apps. Yesterday, Apple officially made Swift open source and my dreams came true. This blog post will help you quickly get started writing your first application using the open source version of Swift on Linux.
Here We Go!
The Linux implementation of Swift currently only runs on Ubuntu 14.04 or Ubuntu 15.10. For our application, I’ll be using Ubuntu 14.04.3. If you don’t have an Ubuntu server sitting around you can always spin one up on your hosting provider of choice (Looking for one? Check out DigitalOcean or Linode). The Swift GitHub page shows you how to build Swift manually but you may want to start writing code without having to wrestle with Linux. Fortunately …