Setup
To use this tool you need to install the Python Twilio packagetwilio
account_sid, auth_token, from_number, or you can set the environment variables TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, TWILIO_FROM_NUMBER.
We've raised a $125M Series B to build the platform for agent engineering. Read more.
twilio
pip install -qU twilio
account_sid, auth_token, from_number, or you can set the environment variables TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, TWILIO_FROM_NUMBER.
from langchain_community.utilities.twilio import TwilioAPIWrapper
twilio = TwilioAPIWrapper(
# account_sid="foo",
# auth_token="bar",
# from_number="baz,"
)
twilio.run("hello world", "+16162904619")
from langchain_community.utilities.twilio import TwilioAPIWrapper
twilio = TwilioAPIWrapper(
# account_sid="foo",
# auth_token="bar",
# from_number="whatsapp: baz,"
)
twilio.run("hello world", "whatsapp: +16162904619")
Was this page helpful?