Created
June 24, 2022 02:06
-
-
Save rahulbanerjee26/51a0dd19b0f87b9cab96b5964213ccce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Create an Assistant Resource | |
''' | |
from twilio.rest import Client | |
client = Client(account_sid, account_key) | |
assistant = None | |
unique_assistant_name = 'twilio-bot-repl-assistant' | |
try: | |
assistant = client.autopilot.assistants.create( | |
unique_name=unique_assistant_name) | |
except: | |
assistant= client.autopilot.assistants(unique_assistant_name).fetch() | |
assistant_sid = assistant.sid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment