Table of Contents
AI Agent In Action - Live Implementation Example
Updated
by Jonathan Goodfellow
English Academy Lead Generation Agent in Action! 💥
In this article we are going to look in detail at a common use case for our AI Agents, a Lead Generation Agent! For our example, we will create an Agent to be used in a Lead Generation capacity for an English Academy.
The Goal: English Academy Lead Generation
Our goal here is to collect information that the user enters to the Agent, and then store that information in a Google Sheet. The method will look like this:
- Collect the required information in the AI Agent
- Trigger the output to move back to the bot
- Send the information collected in the AI Agent to Google Sheets
So lets start with the AI Agent! 👩🏽💻
English Academy AI Agent Setup
Here we provide simple instructions to the Agent about how to behave and what data needs to be captured. In this case, we want the course that they are interested in and their budget.
Instructions
In the Instructions, we need to give directions to the Agent on its role and what information needs to be collected. For our example, it looks like this:

Store Data
We also specify this data and the Fields where the data will be saved. It looks like this:

Output
Finally, you’ll need to set up the Output, which determines what happens when the interaction with the AI Agent ends and the user returns to the bot.
In this case, the Output should trigger once the AI Agent has collected all the necessary information. It will look like this:

Live Implementation
So let's have a look at the whole process in action!
- The AI Agent collects the required data:

- The Output triggers once all of the information has been collected, and the user is sent back to the Rule Based bot. In the chat, we can see that the "Thanks for submitting your information" message comes from the Rule-Based bot:

- The Google Sheet block triggers, and the data collected in the AI Agent is sent to the Sheet:

And that's it! Simple! ✅ Your Agent has collected the necessary data, and we now have to safely stored in our Google Sheet! 💥