manage.py get_chatbots
This module is used to generate a JSON list of all chatbots for an account, printed to the console.
- class smarter.apps.chatbot.management.commands.get_chatbots.Command(*args, **kwargs)[source]
Bases:
SmarterCommandGenerate and print a JSON list of all chatbots for a specified Smarter account.
This management command retrieves all chatbot instances associated with a given account, identified either by account number or company name. It outputs the hostnames of each chatbot to the console in JSON format, allowing administrators to quickly view all deployed chatbots for an account.
- Usage:
Specify the account using
--account_numberor--company_name.
- Command Workflow:
Retrieve the account using the provided identifier.
Query all chatbots linked to the account.
Print the hostname of each chatbot to the console.
Report completion status.
This command is useful for auditing, monitoring, or exporting chatbot deployment information for a particular account.