Skip to content

Sarufi Blueprint to easier the integration between Sarufi and Africas talking 2 way SMS Platform

Notifications You must be signed in to change notification settings

Neurotech-HQ/sarufi-africastalking-blueprint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sarufi-africastalking-blueprint

Sarufi Blueprint to easier the integration between Sarufi and Africas talking 2 way SMS Platform

It uses africastalking python SDK and FastAPI to implement a webhook that you're going to put on AT dashboard on a session of incoming messages.

Setting up

To run this code, first install all the required libaries, which you can easily do by installing the requirements.txt

$ pip install -r requirements.txt

Set up environment Variables

The next thing you need to do is setup the environment variables as shown below;

AT_API_KEY_SECRET=Your AT Sarufi API key
AT_USERNAME=sandbox
SARUFI_API_KEY= Your Sarufi API Key
SARUFI_BOT_ID= Your Sarufi Bot ID

Run the Webhook

Once you do the above, you're now good to to start running the webhook, which you can easily do by using uvicorn.

$ uvicorn app:app --reload

You can then use Ngrok to expose it to the internet

Here how you link it with Ngrok, assumming your app run on port 8000.

$ ngrok http 8000

After this, You can now just copy the HTTPS URL and then go put on your AT Portal and then you can use AT simulator to start testing your SMS based Chatbot.

Contribution ?

Got an idea on how to make it better or fix around this blueprint, All you need is a pull request.

Issues ?

Software are never complete by the way so incase of any issues, feel free to open one so we can fix as soon as we can.

Credits

All the credit to all contributors.

About

Sarufi Blueprint to easier the integration between Sarufi and Africas talking 2 way SMS Platform

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages