In this article, you’ll create a simple web page summarization agent. This exercise is designed to familiarize you with the process of agent creation and give you the confidence to design your own custom agents in the future.
You’ll start by building the agent from scratch, defining an input where you’ll enter a web page URL, and instructing the Agent to read the content of the provided web page and generate a summary.
This hands-on activity will walk you through using the Glean Agent Visual Builder and its various components. By following these steps, you’ll learn the foundational skills needed to build more complex agents that can automate workflows and perform advanced tasks tailored to your specific needs.
There are multiple ways to create an Agent, you can choose one from a template, generate one using a prompt, or create one from scratch. To get a thorough understanding of how triggers and actions work, you should create your agent from scratch.
Once you’ve started creating your agent, you’ll be taken to the Agent Builder. Here, you’ll specify the trigger for the web page summarizer agent.
For this exercise, you’ll use the input form trigger. When run manually, this trigger will ask for an input. You’ll use this input to collect a URL from the user and store it as a field for use later in the agent.
Perform the following steps to add a trigger to your agent:
Select the Input form trigger.
Add a text field to the input form trigger.
Name it “web page”. Optionally, you can provide a description that will display when users see this input field.
Now that you’ve started creating your agent and have collected the URL as the [[ web page ]]
field, you can instruct Glean to read that web page. You will do this by adding a Read document action and passing that [[ web page ]]
field value to it. When the Glean agent reads the web page’s contents found at the URL, it saves it to memory.
Perform the following steps to add the Read document action to your agent:
[[ web page ]]
to retrieve the web page field you created in the step above.Once your agent has read the document and saved it to memory, you can start to interact with it. In this exercise, you’ll use the Respond action to instruct the Agent to generate a summary based on instructions that you specify.
Perform the following steps to add the Respond action to your agent:
Now that you’ve set up your Agent’s trigger and actions, it’s a good idea to save it.
You can preview your agent at any time to test its functionality. Try previewing your agent now.
You must enter the full URL, starting with https://
Now that you’ve previewed your agent, you may wish to modify its functionality. You can improve the functionality of this agent in any number of ways:
https://
.In this article, you’ll create a simple web page summarization agent. This exercise is designed to familiarize you with the process of agent creation and give you the confidence to design your own custom agents in the future.
You’ll start by building the agent from scratch, defining an input where you’ll enter a web page URL, and instructing the Agent to read the content of the provided web page and generate a summary.
This hands-on activity will walk you through using the Glean Agent Visual Builder and its various components. By following these steps, you’ll learn the foundational skills needed to build more complex agents that can automate workflows and perform advanced tasks tailored to your specific needs.
There are multiple ways to create an Agent, you can choose one from a template, generate one using a prompt, or create one from scratch. To get a thorough understanding of how triggers and actions work, you should create your agent from scratch.
Once you’ve started creating your agent, you’ll be taken to the Agent Builder. Here, you’ll specify the trigger for the web page summarizer agent.
For this exercise, you’ll use the input form trigger. When run manually, this trigger will ask for an input. You’ll use this input to collect a URL from the user and store it as a field for use later in the agent.
Perform the following steps to add a trigger to your agent:
Select the Input form trigger.
Add a text field to the input form trigger.
Name it “web page”. Optionally, you can provide a description that will display when users see this input field.
Now that you’ve started creating your agent and have collected the URL as the [[ web page ]]
field, you can instruct Glean to read that web page. You will do this by adding a Read document action and passing that [[ web page ]]
field value to it. When the Glean agent reads the web page’s contents found at the URL, it saves it to memory.
Perform the following steps to add the Read document action to your agent:
[[ web page ]]
to retrieve the web page field you created in the step above.Once your agent has read the document and saved it to memory, you can start to interact with it. In this exercise, you’ll use the Respond action to instruct the Agent to generate a summary based on instructions that you specify.
Perform the following steps to add the Respond action to your agent:
Now that you’ve set up your Agent’s trigger and actions, it’s a good idea to save it.
You can preview your agent at any time to test its functionality. Try previewing your agent now.
You must enter the full URL, starting with https://
Now that you’ve previewed your agent, you may wish to modify its functionality. You can improve the functionality of this agent in any number of ways:
https://
.