![]() The first one will serve to authenticate your HTTP requests to the Microsoft Cognitive Services API, and the second one will be the URL to which you’ll send them. Make sure you set as environmental variables your key and endpoint as TRANSLATOR_TEXT_SUBSCRIPTION_KEY and TRANSLATOR_TEXT_ENDPOINT, respectively. It doesn’t matter which key you pick, either will work. Here you will find the two variables that you will need to set as environmental variables - the key and the endpoint. In the left pane, click on Keys and Endpoint. This means that you have correctly done all the steps and you are ready to create the service! Click on the Create button.Ĭlick on the blue Go to your resource button. One you have done all that, you should be prompted to the following page: Check the boxes to ensure that you understand Microsoft's terms and conditions for the usage of Microsoft's Cognitive Services.If you have a free account, you will select "Standard S0" for the Pricing tier. Note that you will have 2M free chars of any combination of standard translation per month. It can be something like “WhatsappTranslator” or “Translator”. Choose the closest region to your physical location. In the image below, you will see that I have put “France Central”. The main purpose of the resource groups is to keep everything organized and easy to manage. The resource groups are containers that hold services that you have on your Azure account. If you have to create it, just click on Create new and enter a suitable name such as "Translator". Select a resource group or create one.Next, you will be prompted to a page to create the cognitive service. Search for “Cognitive Services” as seen in the picture. Navigate to the Microsoft Azure Portal and click on Create a resource. As a reference, feel free to loom at the official documentation of the Microsoft Cognitive Services. We need to do it because this will be the API that we will be using to get the texts translated. Then we are going to install the Python packages that we need for our chatbot on it.įor Unix or Mac OS systems, open a terminal and enter the following commands to do the tasks described above:Ĭreate a cognitive service resource in Azureįirst, you’ll need to Create a Cognitive Services resource in the Azure portal. We will create it inside of our translator project directory. We are going to create a virtual environment. Note that this step needs to be repeated for any additional phones you’d like to have connected to your sandbox. Shortly after you send the message you should receive a reply from Twilio indicating that your mobile number is connected to the sandbox and can start sending and receiving messages. The code is going to begin with the word join, followed by a randomly generated two-word phrase. To enable the WhatsApp sandbox for your smartphone send a WhatsApp message with the given code to the number assigned to your account. The WhatsApp sandbox page will show you the sandbox number assigned to your account, and a join code. ![]() From your Twilio Console, select Programmable Messaging, then click on "Try it Out" and finally click on Try WhatsApp. Now, we’ll connect your smartphone to the sandbox. ![]() Once your application is complete you can request production access for your Twilio phone number. Twilio provides a WhatsApp sandbox where you can easily develop and test your application. If you don’t have it, create a free account now. You can review the features and limitations of a free Twilio account. If you are new to Twilio create a free account now.
0 Comments
Leave a Reply. |