Skip to content

Instantly share code, notes, and snippets.

@rahulbanerjee26
Created June 24, 2022 02:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulbanerjee26/51a0dd19b0f87b9cab96b5964213ccce to your computer and use it in GitHub Desktop.
Save rahulbanerjee26/51a0dd19b0f87b9cab96b5964213ccce to your computer and use it in GitHub Desktop.
'''
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