This test is a part of our hiring process for backend positions. It should take you between 2 and 4 hours depending on your experience. We made this task in a way that you'll end up learing how IVRs and Twilio's API works. Working on this task will help you in your future projects.
Feel free to apply on our Careers Page and email us at [email protected].
The purpose of the test is to reproduce one small feature: call forwarding.
Here is the story:
Your company has one main number. This number is an IVR:
- If the caller presses
1
, call is forwarded to another phone number; - If the caller presses
2
, he is able to leave a voicemail.
It's 9AM in the office and first calls are coming in!
In order to receive and route calls, you will be creating an interaction with Twilio's API.
Please keep the following points in mind:
- The focus of this test is the interaction between your backend server and Twilio - only inbound calls should be handled;
- In order to test the interaction between Twilio and your local environment, you can use tunnels like ngrok.com;
- Register a test account on Twilio - you'll be able to setup a new account and test phone number for free;
- You can add all the models you need specially for Call object;
- Your project must be available online. A simple Heroku Dyno should do the trick;
- Make your code as clear as possible, it should be understandable at a first glance (comments are more than welcome);
- You can dd tests in your submission, ONLY if you have extra time.
- Use Typescript
- Use NestJS or any other node.js framework
- Use OpenAPI/Swagger Docs to document your APIs
The use case we want to reproduce is the following:
- A customer is calling the main number of your company;
- If the caller presses
1
, the call is redirected on your personal phone*. You should be able to pickup and talk with the caller. - If the caller presses
2
, he can drop a voicemail (you would like to hear this message later); - The call has to be logged in the database;
- An activity feed, listing all calls, should be displayed: status of the call, duration, link to an audio file if the caller dropped a voicemail plus other info you have in mind.
Here are some steps to help you start:
-
Create a Twilio account and read carefully the API doc.
-
Buy a Number on Twilio and try to call it.
-
Create an
Application
and Twilio tools you will use for calls. -
Create the
Call
model in order to store data about calls. -
Forward incoming calls according to the previous strategies.
Please organize, design, test and document your code as if it were going into production, create a loom video and send us a pull request.
We will review it and get back to you in order to talk about your code!