Setup
As with any project, the first step is setting up your environment. Let's get started by ensuring you have a project structure ready to work with.
Important
Since this is an intermediate-level course, please ensure you've gone through the Griptape Setup - Visual Studio Code course to set up your environment. We will be starting from the code at that point.
Create a Project
Following the instructions in Griptape Setup - Visual Studio Code please:
- Create your project folder. Example:
griptape-structure-tool
- Set up your virtual environment
- Ensure you
pip install griptape python-dotenv
- Create a
.env
file with yourOPENAI_API_KEY
- Create your
app.py
file with the following code:
Create a Chatbot
In a typical setup for a TradeSchool course we’d leave the setup at this step - however, in this case we’ll take it a step further and create a Chatbot. To simplify this, we're going to use code from another course and just copy that over.
The Image Query SEO Bonanza course has a great agent we can utilize. Simply copy the code from the Chatbot section in the Code Review area and save that as your app.py.
Next Steps
And there you go, your environment is all set up and you've got a chatbot all ready. In the next section, learn more about how StructureRunDrivers work.