1.0.8 • Published 3 years ago

twilio-connect v1.0.8

Weekly downloads
428
License
AGPLv3
Repository
-
Last release
3 years ago

What is this?

Bundles together multiple Twilio API calls to let you easily deploy a chatbot in a few requests.

Installation

npm i twilio-connector

Usage

const api = require("twilio-connect")

//Retrieve Twilio Client.
client = await api.tryConnectingToTwilio("TwilioAccountSid","TwilioAuthToken")

//List all Phone Numbers on an Account.
numbers = await api.getSMSAccountPhoneNumbers(client)

//Retrieve all Fully Initialised Bots on an Account.
bots = await api.getDeployedBots(client)

//Get back all Bots that have no linked Twilio Service.
unlinked_bots = await api.getUnlinkedBots(client)

//Upload your Chatbot.
assistant_id = await api.uploadNewBot(client, bot)

//Set the SMS webhook of a specific number.
api.changeBotPhoneNumber(client, assistant_id, "+447123456789")

//Simulate a Conversation with your Chatbot.
simulated_text = await api.simulateBot(client, assistant_id, "Text you want to simulate!")

//Remove your Chatbot.
api.removeBot(client, assistant_id)
1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago