An AutoGPT plugin to enable communication with WolframAlpha for solving math problems and getting information.
- Python Package: Install the WolframAlpha Python package:
pip install wolframalpha
-
WolframAlpha API Key: Obtain a WolframAlpha API key by signing up for a free account at the WolframAlpha Developer Portal and creating an app. After creating the app, you will receive an
APP_ID
. -
Install Plugin: Install the plugin by running the following command:
Mac / Linux / WSL
cd plugins && git clone https://github.com/gravelBridge/AutoGPT-WolframAlpha.git && zip -r ./AutoGPT-WolframAlpha.zip ./AutoGPT-WolframAlpha && rm -rf ./AutoGPT-WolframAlpha && cd .. && ./run.sh --install-plugin-deps
Windows, Powershell
cd plugins; git clone https://github.com/gravelBridge/AutoGPT-WolframAlpha.git; Compress-Archive -Path .\AutoGPT-WolframAlpha -DestinationPath .\AutoGPT-WolframAlpha.zip; Remove-Item -Recurse -Force .\AutoGPT-WolframAlpha; cd ..
- Update the .env file: Add the following lines to your
.env
file:
################################################################################
### WOLFRAM ALPHA PLUGIN SETTINGS
################################################################################
WOLFRAM_ALPHA_APP_ID = your_app_id
- Allowlist Plugin: In your
.env
file, search forALLOWLISTED_PLUGINS
and add this plugin:
################################################################################
ALLOWLISTED PLUGINS
################################################################################
#ALLOWLISTED_PLUGINS - Sets the listed plugins that are allowed (Example: plugin1,plugin2,plugin3)
ALLOWLISTED_PLUGINS=AutoGPTWolframAlpha
After installing the package and configuring the settings, you can use the AutoGPT-WolframAlpha plugin to allow AutoGPT to solve math problems and obtain information from WolframAlpha.
Example:
- Configure Auto-GPT: Set up Auto-GPT with the following parameters:
- Name:
MathSolverGPT
- Role:
an ai designed to follow user instructions
- Goals:
- Goal 1:
Solve the integral of x^2 from 0 to 3
- Goal 2:
Terminate
- Goal 1:
- Run Auto-GPT: Launch Auto-GPT, which should use the WolframAlpha plugin to solve the math problem and return the result.