If you're here, it means you are ready to create your first Voximplant app and make it work. To achieve that, you have to complete the following steps:
- Create an application
- Create a scenario inside it
- Create a rule and attach it to the scenario
- Buy a phone number
- Test the app
Let us begin with an application. Go to the Voximplant control panel and log into your account or create a new one. Then choose the application section from the menu in the upper left corner and click New application in the upper right corner or Create at the bottom of page:
This opens the New application editor window where you will set it up and confirm by clicking Create. The new app appears in the application list. To change its name, icon or description, click the three dots menu and select Edit.
With this done, we move to scenario creation.
Open your newly created app, select Scenarios on the left menu, and click on the plus icon and give your scenario a name:
This opens a new tab in the online IDE on the right. This is where you write your code. If needed, you can rename the scenario or change the source code later. Also, you can upload changes automatically via the Management API.
Now, give your scenario a name and add some code. Here is an example of what you can write there:
In this scenario, we will play synthesized speech to a callee using the say method. But we will test it after we create a rule and buy a phone number.
Let's move to the Rules section. Rules tell the platform which scenarios to execute when a call arrives at the platform or the StartScenarios API method is called. To create a rule, switch to the Routing tab of the application and either click Create in the center of the screen or New rule in the upper right corner:
The last thing we need to test our app is a phone number. You can rent a number from us and set your own CallerID, if you want to (not for test numbers). In this quickstart, we rent a test phone number accessible as an extension. On the Voximplant control panel, select My phone numbers on the left menu and then click Buy new phone number in the upper right corner:
The phone number interface will be displayed. Select Test numbers, then select one or more test numbers and click Buy selected:
Next you can make a call. Dial one of the access numbers displayed on the page and enter the number you bought as an extension when you hear the prompt.