For the complete documentation index, see llms.txt. This page is also available as Markdown.

Use case – Automatic update: your Agent always connected to the web

AIsuru offers the powerful ability to enrich your Agent's conversations with real-time information from external websites. This feature lets your virtual assistant provide up-to-date data on a variety of topics, significantly improving the quality and relevance of interactions.

In this guide, we'll walk through a concrete implementation example: we'll create a function to retrieve and analyze HTML content from a web page in real time. This lets us process the HTML code and extract useful content through generative AI.

Implementing a function to retrieve live web content

Let's walk step by step through creating a function that retrieves HTML content from a website and analyzes it:

  1. Access and creation

    • Go to your Agent's management panel in AIsuru;

    • Navigate to "Functions" > "Advanced functions";

    • Click "New function".

  2. Function configuration

    • Name: give your function a short but descriptive name (e.g. site_questions — no spaces);

    • Description: copy and paste this description: "This function retrieves the HTML content of a specific web page. Use it when a user asks for information or updates from a particular website."

    • Webhook: enter the link to the page to analyze;

    • HTTP method: use the already-selected GET method.

  3. Testing the function

    • Scroll to the bottom and press Test > Run;

    • Verify the function works: you should see the page's HTML code as the response.

✅ If everything looks good, you can save your function.

Integrating into the Agent's instructions

Now that your function is ready, you'll need to add it to the Agent's Instructions:

  1. Go to your Agent's Settings > AI > Instructions;

  2. Add these instructions:

Practical example: the Verona Municipality blog

Let's look at a concrete example of how to use this function to create an Agent that shows users real-time articles from the Verona Municipality blog.

Specific configuration:

  • Name: comune_verona_blog

  • Description: "Use this function when the user asks for content from the Verona Municipality blog. Analyze the information to respond clearly and in an organized way."

  • Webhook: https://www.comune.verona.it/nqcontent.cfm?a_id=70461

Specific instructions for the Agent

Add these specific instructions to the Agent's prompt:

Example interaction

User: "What are the latest articles on the Verona blog?"

[The Agent uses the comune_verona_blog function]

Agent: Of course! Let me check the latest updates from the Verona Municipality blog.

Here's a list of the most recent articles published on the Verona Municipality blog:

  1. Pre-school: Welcoming children aged 3–6

    • The Municipality announces new initiatives for welcoming children in pre-schools, with a focus on educational activities and socialization.

  2. City Council: Opening of 2nd session 2024

    • Announcement of the date and agenda for the upcoming City Council session, with discussions on important city issues.

  3. Tender no. 23/24: Appointment of the evaluation committee

    • Information on the appointment of the evaluation committee for a recent municipal tender, including details on the selection process.

Would you like more information on any of these articles in particular, or would you prefer a general overview of recent Municipal activities?

With this implementation, your Agent becomes a reliable source of up-to-date information from specific websites. This web content analysis function is just the beginning: you can apply the same approach to integrate data from various websites, further expanding your Agent's capabilities! 🌟

Last updated