The AIFeatures
model is used to manage feature flags for AI agents. These flags enable or disable specific functionalities within the application. Each feature flag is associated with an agent and can be toggled on or off based on the requirements.
- Description: Enables the functionality to send text messages to users.
- Value: The phone number from which messages will be sent.
- Enabled: When set to
true
, thesend_message
function is active.
- Description: Controls the active state of the
send_message
function. - Value: Not applicable.
- Enabled: When set to
true
, thesend_message
function is inactive.
- Description: Enables the functionality to transfer calls to a specified target.
- Value: Not applicable.
- Enabled: When set to
true
, thetransfer
function is active.
- Description: Controls the active state of the
transfer
function. - Value: Not applicable.
- Enabled: When set to
true
, thetransfer
function is inactive.
- Description: Provides a mapping of transfer targets to their respective contact details.
- Value: A string formatted as
key1:value1|key2:value2|...
, where each key-value pair represents a target and its contact. - Enabled: Not applicable.
- Description: Stores the API key for accessing the API Ninjas service.
- Value: The API key string.
- Enabled: When set to
true
, the API key is considered valid and usable.
- Description: Enables the functionality to fetch weather information for a specified city.
- Value: Not applicable.
- Enabled: When set to
true
, theget_weather
function is active.
- Description: Enables the functionality to fetch and tell jokes.
- Value: Not applicable.
- Enabled: When set to
true
, theget_joke
function is active.
- Description: Enables the functionality to fetch trivia questions.
- Value: Not applicable.
- Enabled: When set to
true
, theget_trivia
function is active.
- Description: Enables the functionality to fetch random facts.
- Value: Not applicable.
- Enabled: When set to
true
, theget_fact
function is active.
- Description: Enables the functionality to fetch and display quotes.
- Value: Not applicable.
- Enabled: When set to
true
, theget_quote
function is active.
- Description: Enables the functionality to fetch cocktail recipes.
- Value: Not applicable.
- Enabled: When set to
true
, theget_cocktail
function is active.
- Description: Enables the functionality to access and manage data within the Data Sphere environment.
- Value: The document ID used to identify and access specific data within the Data Sphere.
- Enabled: When set to
true
, thedata_sphere
function is active.
- Description: Enables the functionality to record audio.
- Value: The format of the recording, which can be either
wav
ormp3
. - Enabled: When set to
true
, the recording function is active. By default, recordings are made in stereo.
- Description: Specifies the path to the SWAIG server running MovieBot.
- Value: The URL path, e.g.,
https://path/swaig
. - Enabled: When set to
true
, the TMDB functions are active.
Each feature flag can be managed through the application's interface or API. The flags are stored in the database and can be queried or updated as needed. The enabled
attribute determines whether the feature is active, while the value
attribute provides additional configuration details when necessary.
To enable the message sending feature for an agent, set the ENABLE_MESSAGE
flag to true
and provide a valid phone number in the value
field.