$ yo botbuilder
You will need
- A tyntec Conversations Inbox account
- A Conversations Inbox API key
- A Conversations Inbox WhatsApp Channel JID
- Downloaded Ngrok
- Visual Studio Code installed (or similar software)
- Postman installed (or similar software)
- Yeoman installed
- NodeJS installed
At this time, the integration can only be applied to WA messages that come into your Conversations Inbox.
If you are using a Windows operating system, you may have a problem with the permission to run scripts in PowerShell: "RUNNING SCRIPTS IS DISABLED ON THIS SYSTEM".
Solution: Run PowerShell as an administrator and run this command:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
Welcome to the Microsoft Bot Builder generator v4.15.0. Detailed documentation can be found at https://aka.ms/botbuilder-generator ? What's the name of your bot? my-chat-bot //YOUR CHATBOT NAME ? What will your bot do? Demonstrate integration of the tyntec Conversations Inbox API and the Microsoft Bot Framework ? What programming language do you want to use? TypeScript ? Which template would you like to start with? Echo Bot - https://aka.ms/bot-template-echo ? Looking good. Shall I go ahead and create your new bot? Y
Congratulations! Your chatbot is created.
$ cd my-chat-bot
$ npm install botbuilder-adapter-tyntec-conversation-inbox
import axios from 'axios'; import { TyntecWhatsAppAdapter } from 'botbuilder-adapter-tyntec-conversation-inbox'; const axiosInstance = axios.create(); const tyntecCoversationsInboxAdapter = new tyntecConversationsInboxAdapter({ axiosInstance, tyntecApikey: <your-tyntec-api-key> }); server.post('/api/whatsapp/incoming-messages', async (req, res) => { await whatsAppAdapter.processActivity(req, res, (context) => myBot.run(context)); });
You can find an example in botbuilder-adapter-tyntec-conversation-inbox/examples/echo-bot/ file.
$ npm start
$ path/to/ngrok http 3000
Step Four: Register the bot's webhook
Let the tyntec Conversations Inbox API know where to deliver WhatsApp messages from customers or your users. You’re going to subscribe to the bot’s webhook via an API call in Postman.
1. Open Postman.
2. Use this API endpoint to register your webhook.

Step Five: Test it
The last thing is to test if the bot works and respond with an Echo message. So let's do it.
1. Grab your mobile phone with WhatsApp not associated with any WABA account.
2. Send a message to your WhatsApp Business Account number.
In a few moments, you will see a reply from your own Echo bot in your Conversations Inbox as well as on your mobile phone.

Congratulations! You successfully implemented a Microsoft Bot Framework to your Conversations Inbox and WhatsApp.
More?
Explore the full potential of your bot for your business. Discover all the possibilities with the official Microsoft documentation.
For production use, you can deploy your bot by following the deployment tutorial.