diff --git a/cookbook/research-agent/llama_index_agent.ipynb b/cookbook/research-agent/llama_index_agent.ipynb
new file mode 100644
index 0000000..bb22c21
--- /dev/null
+++ b/cookbook/research-agent/llama_index_agent.ipynb
@@ -0,0 +1,509 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {
+ "id": "ReBHQ5_834pZ"
+ },
+ "source": [
+ "\n",
+ " \n",
+ ""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {
+ "id": "jEkuKbcRrPcK"
+ },
+ "source": [
+ "## 🕷️ Extract Keyboard prices with llama-index and ScrapegraphAI APIs"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {
+ "id": "bsSKqJT1dl6J"
+ },
+ "source": [
+ "
"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {
+ "id": "IzsyDXEWwPVt"
+ },
+ "source": [
+ "### 🔧 Install `dependencies`"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "id": "os_vm0MkIxr9"
+ },
+ "outputs": [],
+ "source": [
+ "%%capture\n",
+ "!pip install llama-index\n",
+ "!pip install llama-index-tools-scrapegraphai"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {
+ "id": "apBsL-L2KzM7"
+ },
+ "source": [
+ "### 🔑 Import `ScrapeGraph` and `OpenaAI` API keys"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {
+ "id": "ol9gQbAFkh9b"
+ },
+ "source": [
+ "You can find the Scrapegraph API key [here](https://dashboard.scrapegraphai.com/)"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "colab": {
+ "base_uri": "https://localhost:8080/"
+ },
+ "id": "sffqFG2EJ8bI",
+ "outputId": "ac476453-97dc-4514-a42a-dc7c40fb6011"
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "SGAI_API_KEY found in environment.\n"
+ ]
+ }
+ ],
+ "source": [
+ "import os\n",
+ "from getpass import getpass\n",
+ "\n",
+ "# Check if the API key is already set in the environment\n",
+ "sgai_api_key = os.getenv(\"SGAI_API_KEY\")\n",
+ "\n",
+ "if sgai_api_key:\n",
+ " print(\"SGAI_API_KEY found in environment.\")\n",
+ "else:\n",
+ " print(\"SGAI_API_KEY not found in environment.\")\n",
+ " # Prompt the user to input the API key securely (hidden input)\n",
+ " sgai_api_key = getpass(\"Please enter your SGAI_API_KEY: \").strip()\n",
+ " if sgai_api_key:\n",
+ " # Set the API key in the environment\n",
+ " os.environ[\"SGAI_API_KEY\"] = sgai_api_key\n",
+ " print(\"SGAI_API_KEY has been set in the environment.\")\n",
+ " else:\n",
+ " print(\"No API key entered. Please set the API key to continue.\")\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {
+ "id": "FFla30JV8vyc"
+ },
+ "source": [
+ "You can find OpenAI key [here](https://auth.openai.com/authorize?audience=https%3A%2F%2Fapi.openai.com%2Fv1&auth0Client=eyJuYW1lIjoiYXV0aDAtc3BhLWpzIiwidmVyc2lvbiI6IjEuMjEuMCJ9&client_id=DRivsnm2Mu42T3KOpqdtwB3NYviHYzwD&device_id=ae0f442e-634e-48c9-97c1-586c458be4a9&issuer=https%3A%2F%2Fauth.openai.com&max_age=0&nonce=VXEuaDZsWUNQNHIyUDJ2N2k1TExpREUuWlg0R29YUmk5elUxYVU3QUpiNQ%3D%3D&redirect_uri=https%3A%2F%2Fplatform.openai.com%2Fauth%2Fcallback&response_mode=query&response_type=code&scope=openid+profile+email+offline_access&state=WGNmdGRub21STEtUcUMzRWRkYkFFbWI1VEJ6VkczYzBMdndBXzlnN05SZg%3D%3D&flow=treatment)"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "colab": {
+ "base_uri": "https://localhost:8080/"
+ },
+ "id": "Yx895fNp8uQV",
+ "outputId": "a1f8ddb5-31d5-442c-edb1-5b08fc237d92"
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "OPENAI_API_KEY found in environment.\n"
+ ]
+ }
+ ],
+ "source": [
+ "import os\n",
+ "from getpass import getpass\n",
+ "\n",
+ "# Check if the API key is already set in the environment\n",
+ "sgai_api_key = os.getenv(\"OPENAI_API_KEY\")\n",
+ "\n",
+ "if sgai_api_key:\n",
+ " print(\"OPENAI_API_KEY found in environment.\")\n",
+ "else:\n",
+ " print(\"OPENAI_API_KEY not found in environment.\")\n",
+ " # Prompt the user to input the API key securely (hidden input)\n",
+ " sgai_api_key = getpass(\"Please enter your OPENAI_API_KEY: \").strip()\n",
+ " if sgai_api_key:\n",
+ " # Set the API key in the environment\n",
+ " os.environ[\"OPENAI_API_KEY\"] = sgai_api_key\n",
+ " print(\"OPENAI_API_KEY has been set in the environment.\")\n",
+ " else:\n",
+ " print(\"No API key entered. Please set the API key to continue.\")\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {
+ "id": "hWc1Qdc18eHE"
+ },
+ "source": [
+ "# Etract structured informations from a website"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {
+ "id": "j3F6AZs7fK2q"
+ },
+ "source": [
+ ""
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "id": "Y5zuhhCbYwaH"
+ },
+ "outputs": [],
+ "source": [
+ "def scrapegraph_tool_invocation(prompt, url):\n",
+ " \"\"\"\n",
+ " Invokes the Scrapegraph smart scraper tool to extract information from a webpage based on a prompt.\n",
+ "\n",
+ " Args:\n",
+ " prompt (str): The prompt describing what information to extract from the webpage.\n",
+ " url (str): The URL of the webpage to scrape.\n",
+ "\n",
+ " Returns:\n",
+ " The response from the Scrapegraph tool containing the extracted information.\n",
+ "\n",
+ " Note:\n",
+ " Requires the SGAI_API_KEY environment variable to be set.\n",
+ " \"\"\"\n",
+ " import os\n",
+ " from llama_index.tools.scrapegraph.base import ScrapegraphToolSpec\n",
+ "\n",
+ " scrapegraph_tool = ScrapegraphToolSpec()\n",
+ " response = scrapegraph_tool.scrapegraph_smartscraper(\n",
+ "\n",
+ " prompt=prompt,\n",
+ " url=url,\n",
+ " api_key=os.getenv(\"SGAI_API_KEY\"),\n",
+ " )\n",
+ "\n",
+ " return response"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "id": "5trXVkGUYN2t"
+ },
+ "outputs": [],
+ "source": [
+ "from llama_index.core.tools import FunctionTool\n",
+ "from llama_index.llms.openai import OpenAI\n",
+ "from llama_index.core.agent import ReActAgent\n",
+ "\n",
+ "\n",
+ "scrape_tool = FunctionTool.from_defaults(fn=scrapegraph_tool_invocation)\n",
+ "\n",
+ "# initialize llm\n",
+ "llm = OpenAI(model=\"gpt-4o\")\n",
+ "\n",
+ "# initialize ReAct agent\n",
+ "agent = ReActAgent.from_tools([scrape_tool ], llm=llm, verbose=True)"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "id": "mW9NSsXFdMe8"
+ },
+ "outputs": [],
+ "source": [
+ "link = \"https://www.ebay.com/sch/i.html?_from=R40&_trksid=p4432023.m570.l1313&_nkw=keyboards&_sacat=0\""
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "colab": {
+ "base_uri": "https://localhost:8080/"
+ },
+ "id": "5qKjYpdZYP9G",
+ "outputId": "bd9fd0c9-7382-43d5-a1a3-7ff497669d4f"
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "> Running step 4abd0d38-1ec8-49dd-b5e3-7eb63e4de6eb. Step input: Extract me all the keyboard names and prices from the following website: https://www.ebay.com/sch/i.html?_from=R40&_trksid=p4432023.m570.l1313&_nkw=keyboards&_sacat=0\n",
+ "\u001b[1;3;38;5;200mThought: The current language of the user is English. I need to use a tool to help me extract all the keyboard names and prices from the provided eBay URL.\n",
+ "Action: scrapegraph_tool_invocation\n",
+ "Action Input: {'prompt': 'Extract all keyboard names and their prices.', 'url': 'https://www.ebay.com/sch/i.html?_from=R40&_trksid=p4432023.m570.l1313&_nkw=keyboards&_sacat=0'}\n",
+ "\u001b[0m\u001b[1;3;34mObservation: {'request_id': '1e9e81c6-5aa7-4816-8846-2d74eae8579a', 'status': 'completed', 'website_url': 'https://www.ebay.com/sch/i.html?_from=R40&_trksid=p4432023.m570.l1313&_nkw=keyboards&_sacat=0', 'user_prompt': 'Extract all keyboard names and their prices.', 'result': {'keyboards': [{'name': 'Logitech K380 Wireless Bluetooth Keyboard', 'price': '$29.99'}, {'name': 'Lot OF 10 - USB Wired Standard Layout Keyboard 104-Key Mixed Brand Models', 'price': '$44.99'}, {'name': 'EliteForce Gaming Keyboard LED Rainbow Backlit Light up Membrane Keyboard', 'price': '$13.59'}, {'name': 'MADLIONS MAD 60/68HE Gaming Magnetic Switch Keyboard Wired Key Web Drive Custom', 'price': '$59.45 to $117.63'}, {'name': 'HP 125 Wired Keyboard US, Black', 'price': '$11.99'}, {'name': 'Mini Wireless Keyboard Bluetooth Compatible For Phone Tablet Color Backlit', 'price': '$8.45'}, {'name': 'K1000 10 inch Ultra Thin 78 Keys Wired Keyboard Mini USB Slim PC Keyboard Keypad', 'price': '$11.11'}, {'name': 'Razer BlackWidow V4 Wired Mechanical Green Switch Gaming Keyboard w/ Chroma RGB', 'price': '$89.99'}, {'name': 'SteelSeries Apex Gaming Keyboard German 5 Zone RGB LED Backlit Low Profile 64148', 'price': '$71.20'}, {'name': 'Logitech Wave Keys MK670 Combo Keyboard with Mouse', 'price': '$35.95'}, {'name': 'Razer BlackWidow V4 Pro 75% Wireless Gaming Keyboard', 'price': '$224.99'}, {'name': 'Logitech Casa Pop-Up Desk Work From Home Kit Compact Wireless Keyboard', 'price': '$134.99'}, {'name': 'Razer Huntsman Mini Wired Optical Clicky Switch Keyboard', 'price': '$67.99'}, {'name': 'Cherry Kw X Ulp Ultra Slim Wireless Mechanical Keyboard G8u-27000ltbus-2', 'price': '$109.99'}, {'name': 'Logitech MX Keys S Wireless Keyboard, Low Profile, Quiet Typing, Backlighting', 'price': '$84.99'}, {'name': 'Large Print Backlit Keyboard Wired USB Lighted Computer Keyboard 104 Keys', 'price': '$23.21'}, {'name': 'Cherry LPOS Wired USB Programable Keyboard P/N: G86-71400EUADAA (Open Box)', 'price': '$99.99'}, {'name': 'ATTACK SHARK M87 Wireless Gaming Keyboard TKL Bluetooth5.0/2.4G RGB Rechargeable', 'price': '$22.86 to $44.49'}, {'name': 'Mini Wireless Bluetooth Keyboard Compatible With Android Windows Mac System', 'price': '$8.45'}, {'name': 'RGB PC Gaming Keyboard Mouse & Headset Set LED Gamer Bundle Mechanical Kits 4IN1', 'price': '$36.90'}, {'name': 'Gaming Mechanical Keyboard Retro Inspired Typewriter-Style Pink', 'price': 'Not available'}, {'name': 'HP WIRED USB SLIM KEYBOARD 803181-001 Lot of 6', 'price': '$59.99'}, {'name': 'Philips SPK6254 USB Wired Keyboard (SPANISH)', 'price': '$12.75'}, {'name': 'MICROSOFT SCULPT ERGONOMIC KEYBOARD WITH KEYPAD & MOUSE', 'price': '$169.99'}, {'name': 'Leopold FC660M 66key Mechanical Mini Keyboard Black', 'price': '$39.95'}, {'name': 'Dell KB216-BK-US Wired Keyboard - Black', 'price': '$8.00'}, {'name': '35 Keys Bluetooth-compatible Wireless Numeric Keypad Dual Mode Keyboard', 'price': '$15.19 to $15.39'}, {'name': 'Microsoft Universal Foldable Keyboard Portable Wireless Bluetooth', 'price': '$62.03'}, {'name': 'K3 Mechanical Keyboard USB Charging 100 Keys Gaming Wired Keyboard Wired Russian', 'price': '$37.80'}, {'name': '60% Wireless Mechanical Gaming Keyboard RGB Backlit, Triple Mode Bluetooth/USB-C', 'price': 'Not listed'}, {'name': '65% Thocky Wireless Mechanical Keyboard | MMD Princess Tactile | Marrs Green Key', 'price': '$229.00'}, {'name': 'Logitech G413 SE Mechanical Gaming Keyboard - Black, English - US', 'price': '$29.99'}, {'name': 'Foldable Keyboard Compatible Bluetooth Portable Office Keyboard Tablet Universal', 'price': '$16.72 to $17.38'}, {'name': 'MC-8017 Wired 78 Keys USB Wired Mini Multimedia Keyboard for Laptops PC Computer', 'price': '$30.99'}, {'name': 'Original Lenovo Thinkpad KU-1255 USB Wired Keyboard TrackPoint 0B47190', 'price': '$62.99'}, {'name': 'HP 975 Dual-Mode Wireless Keyboard for Business - Brand New Sealed', 'price': '$62.96'}, {'name': 'Kuno Universal Tablet Keyboards with Trackpad', 'price': '$55.00'}, {'name': 'ALTEC LANSING ALBC6314 Wireless Keyboard & Mouse Combo (ENGLISH)', 'price': '$15.95'}, {'name': 'Higround x One Piece x HG 68 Keycaps Set ZORO', 'price': 'Not specified'}, {'name': 'Original Lenovo SK-8845CR UltraNav USB Wired Keyboard - US English NEW', 'price': '$99.99'}, {'name': 'Mini Wireless Bluetooth Keyboard Remote Touchpad Smart-TV Android TV PC Backlit', 'price': '$13.99'}, {'name': 'STICKERS Black QWERTY Keyboard Desktop, Laptop, Computer, PC', 'price': '$2.34'}, {'name': 'New Logitech MX Keys S Full-Size Bluetooth Wireless Keyboard Black 920-011406', 'price': '$78.98'}, {'name': 'COX Endeavour Original Retro Capacitance Non-Contact Keyboard 35g/50g, ENG/KOR', 'price': '$139.72'}, {'name': 'Luminous Keyboard Stickers Russian Arabic English French Glow In The Dark Decal', 'price': '$1.93'}, {'name': 'keyboard gaming', 'price': 'Not specified'}, {'name': 'CHONCHOW RGB Compact Gaming Keyboard', 'price': '$15.00'}, {'name': 'Glorious GMMK Compact 60% RGB Wired Modular Mechanical Keyboard - Brown Switches', 'price': '$20.00'}, {'name': 'Large Print Backlit Keyboard, Wired USB Lighted Computer Keyboards with 7-Color', 'price': '$29.18'}, {'name': 'Office Shortcut Keypad Copy Paste Select All Cut Mini USB Mechanical Keyboard', 'price': '$9.09 to $10.49'}, {'name': 'Rechargable Bluetooth 3.0 Keyboard - Black', 'price': '$11.99'}, {'name': 'Bluetooth Wireless Keyboard Mini Slim Rechargeable Keypad for Smart Phone Tablet', 'price': '$14.59'}, {'name': 'French/English Language 78 Keys Slim Lightweight Portable Wired USB Keyboard', 'price': '$23.99'}, {'name': 'ATTACK SHARK AK680 60% Wired Mechanical Gaming Keyboard, Hot-Swappable', 'price': 'Not listed'}, {'name': 'Dell Keyboard KB522p2 Genuine OEM Wired Business Multimedia Black QWERTY', 'price': '$21.95'}, {'name': 'Microsoft Natural Ergonomic Keyboard 4000 v1.0 KU-0462 USB Wired', 'price': 'Not specified'}, {'name': 'Dustsilver D66 Wireless Mechanical Keyboard Peach', 'price': '$39.99'}, {'name': 'Microsoft Logitech Keyboards: K350 M510 K850 Natural Ergonomic Wireless Comfort', 'price': '$14.99 to $49.99'}, {'name': 'IBM Keyboard PS2 Model No. KB-0225 P/N 89P8440', 'price': '$19.99'}, {'name': 'Razer x Arknights Rhodes Island Blackwidow TKL Wired Mechanical Keyboard & Mouse', 'price': '$79.99 to $279.99'}, {'name': 'Rechargeable Backlit Bluetooth Touchpad Keyboard Mouse For Android IOS Tablet PC', 'price': 'Not specified'}, {'name': 'Split Mechanical Keyboard 40-key Layout Programmable VIA Change Mini Keyboard US', 'price': '$109.40 to $127.67'}, {'name': 'Glorious GMMK2 96% Fox Prebuilt Gaming Keyboard, Black', 'price': '$32.19'}, {'name': 'Split Keyboard Corne USBC - Ergonomic Keyboard', 'price': '$180.55 to $263.10'}, {'name': 'Altec Lansing ALGK8404 Wired Mechanical Gaming Keyboard RGB Ergonomic WHITE/GRAY', 'price': '$29.95'}, {'name': 'Philips SPT6501 Wireless Keyboard + Mouse combo (SPANISH)', 'price': 'Not specified'}, {'name': 'Foldable Wireless Bluetooth Keyboard with Touchpad for Windows iOS Android Gray', 'price': '$28.99'}, {'name': 'Russian/English Language 78 Keys Slim Lightweight Portable Wired USB Keyboard', 'price': '$25.99'}]}, 'error': ''}\n",
+ "\u001b[0m> Running step 9f9ba9cd-64e2-4a2a-8454-596a2191d666. Step input: None\n",
+ "\u001b[1;3;38;5;200mThought: I have successfully extracted all the keyboard names and their prices from the eBay website. I can now provide the information to the user.\n",
+ "Answer: Here are all the keyboard names and their prices extracted from the eBay website:\n",
+ "\n",
+ "1. Logitech K380 Wireless Bluetooth Keyboard - $29.99\n",
+ "2. Lot OF 10 - USB Wired Standard Layout Keyboard 104-Key Mixed Brand Models - $44.99\n",
+ "3. EliteForce Gaming Keyboard LED Rainbow Backlit Light up Membrane Keyboard - $13.59\n",
+ "4. MADLIONS MAD 60/68HE Gaming Magnetic Switch Keyboard Wired Key Web Drive Custom - $59.45 to $117.63\n",
+ "5. HP 125 Wired Keyboard US, Black - $11.99\n",
+ "6. Mini Wireless Keyboard Bluetooth Compatible For Phone Tablet Color Backlit - $8.45\n",
+ "7. K1000 10 inch Ultra Thin 78 Keys Wired Keyboard Mini USB Slim PC Keyboard Keypad - $11.11\n",
+ "8. Razer BlackWidow V4 Wired Mechanical Green Switch Gaming Keyboard w/ Chroma RGB - $89.99\n",
+ "9. SteelSeries Apex Gaming Keyboard German 5 Zone RGB LED Backlit Low Profile 64148 - $71.20\n",
+ "10. Logitech Wave Keys MK670 Combo Keyboard with Mouse - $35.95\n",
+ "11. Razer BlackWidow V4 Pro 75% Wireless Gaming Keyboard - $224.99\n",
+ "12. Logitech Casa Pop-Up Desk Work From Home Kit Compact Wireless Keyboard - $134.99\n",
+ "13. Razer Huntsman Mini Wired Optical Clicky Switch Keyboard - $67.99\n",
+ "14. Cherry Kw X Ulp Ultra Slim Wireless Mechanical Keyboard G8u-27000ltbus-2 - $109.99\n",
+ "15. Logitech MX Keys S Wireless Keyboard, Low Profile, Quiet Typing, Backlighting - $84.99\n",
+ "16. Large Print Backlit Keyboard Wired USB Lighted Computer Keyboard 104 Keys - $23.21\n",
+ "17. Cherry LPOS Wired USB Programable Keyboard P/N: G86-71400EUADAA (Open Box) - $99.99\n",
+ "18. ATTACK SHARK M87 Wireless Gaming Keyboard TKL Bluetooth5.0/2.4G RGB Rechargeable - $22.86 to $44.49\n",
+ "19. Mini Wireless Bluetooth Keyboard Compatible With Android Windows Mac System - $8.45\n",
+ "20. RGB PC Gaming Keyboard Mouse & Headset Set LED Gamer Bundle Mechanical Kits 4IN1 - $36.90\n",
+ "21. Gaming Mechanical Keyboard Retro Inspired Typewriter-Style Pink - Not available\n",
+ "22. HP WIRED USB SLIM KEYBOARD 803181-001 Lot of 6 - $59.99\n",
+ "23. Philips SPK6254 USB Wired Keyboard (SPANISH) - $12.75\n",
+ "24. MICROSOFT SCULPT ERGONOMIC KEYBOARD WITH KEYPAD & MOUSE - $169.99\n",
+ "25. Leopold FC660M 66key Mechanical Mini Keyboard Black - $39.95\n",
+ "26. Dell KB216-BK-US Wired Keyboard - Black - $8.00\n",
+ "27. 35 Keys Bluetooth-compatible Wireless Numeric Keypad Dual Mode Keyboard - $15.19 to $15.39\n",
+ "28. Microsoft Universal Foldable Keyboard Portable Wireless Bluetooth - $62.03\n",
+ "29. K3 Mechanical Keyboard USB Charging 100 Keys Gaming Wired Keyboard Wired Russian - $37.80\n",
+ "30. 60% Wireless Mechanical Gaming Keyboard RGB Backlit, Triple Mode Bluetooth/USB-C - Not listed\n",
+ "31. 65% Thocky Wireless Mechanical Keyboard | MMD Princess Tactile | Marrs Green Key - $229.00\n",
+ "32. Logitech G413 SE Mechanical Gaming Keyboard - Black, English - US - $29.99\n",
+ "33. Foldable Keyboard Compatible Bluetooth Portable Office Keyboard Tablet Universal - $16.72 to $17.38\n",
+ "34. MC-8017 Wired 78 Keys USB Wired Mini Multimedia Keyboard for Laptops PC Computer - $30.99\n",
+ "35. Original Lenovo Thinkpad KU-1255 USB Wired Keyboard TrackPoint 0B47190 - $62.99\n",
+ "36. HP 975 Dual-Mode Wireless Keyboard for Business - Brand New Sealed - $62.96\n",
+ "37. Kuno Universal Tablet Keyboards with Trackpad - $55.00\n",
+ "38. ALTEC LANSING ALBC6314 Wireless Keyboard & Mouse Combo (ENGLISH) - $15.95\n",
+ "39. Higround x One Piece x HG 68 Keycaps Set ZORO - Not specified\n",
+ "40. Original Lenovo SK-8845CR UltraNav USB Wired Keyboard - US English NEW - $99.99\n",
+ "41. Mini Wireless Bluetooth Keyboard Remote Touchpad Smart-TV Android TV PC Backlit - $13.99\n",
+ "42. STICKERS Black QWERTY Keyboard Desktop, Laptop, Computer, PC - $2.34\n",
+ "43. New Logitech MX Keys S Full-Size Bluetooth Wireless Keyboard Black 920-011406 - $78.98\n",
+ "44. COX Endeavour Original Retro Capacitance Non-Contact Keyboard 35g/50g, ENG/KOR - $139.72\n",
+ "45. Luminous Keyboard Stickers Russian Arabic English French Glow In The Dark Decal - $1.93\n",
+ "46. keyboard gaming - Not specified\n",
+ "47. CHONCHOW RGB Compact Gaming Keyboard - $15.00\n",
+ "48. Glorious GMMK Compact 60% RGB Wired Modular Mechanical Keyboard - Brown Switches - $20.00\n",
+ "49. Large Print Backlit Keyboard, Wired USB Lighted Computer Keyboards with 7-Color - $29.18\n",
+ "50. Office Shortcut Keypad Copy Paste Select All Cut Mini USB Mechanical Keyboard - $9.09 to $10.49\n",
+ "51. Rechargable Bluetooth 3.0 Keyboard - Black - $11.99\n",
+ "52. Bluetooth Wireless Keyboard Mini Slim Rechargeable Keypad for Smart Phone Tablet - $14.59\n",
+ "53. French/English Language 78 Keys Slim Lightweight Portable Wired USB Keyboard - $23.99\n",
+ "54. ATTACK SHARK AK680 60% Wired Mechanical Gaming Keyboard, Hot-Swappable - Not listed\n",
+ "55. Dell Keyboard KB522p2 Genuine OEM Wired Business Multimedia Black QWERTY - $21.95\n",
+ "56. Microsoft Natural Ergonomic Keyboard 4000 v1.0 KU-0462 USB Wired - Not specified\n",
+ "57. Dustsilver D66 Wireless Mechanical Keyboard Peach - $39.99\n",
+ "58. Microsoft Logitech Keyboards: K350 M510 K850 Natural Ergonomic Wireless Comfort - $14.99 to $49.99\n",
+ "59. IBM Keyboard PS2 Model No. KB-0225 P/N 89P8440 - $19.99\n",
+ "60. Razer x Arknights Rhodes Island Blackwidow TKL Wired Mechanical Keyboard & Mouse - $79.99 to $279.99\n",
+ "61. Rechargeable Backlit Bluetooth Touchpad Keyboard Mouse For Android IOS Tablet PC - Not specified\n",
+ "62. Split Mechanical Keyboard 40-key Layout Programmable VIA Change Mini Keyboard US - $109.40 to $127.67\n",
+ "63. Glorious GMMK2 96% Fox Prebuilt Gaming Keyboard, Black - $32.19\n",
+ "64. Split Keyboard Corne USBC - Ergonomic Keyboard - $180.55 to $263.10\n",
+ "65. Altec Lansing ALGK8404 Wired Mechanical Gaming Keyboard RGB Ergonomic WHITE/GRAY - $29.95\n",
+ "66. Philips SPT6501 Wireless Keyboard + Mouse combo (SPANISH) - Not specified\n",
+ "67. Foldable Wireless Bluetooth Keyboard with Touchpad for Windows iOS Android Gray - $28.99\n",
+ "68. Russian/English Language 78 Keys Slim Lightweight Portable Wired USB Keyboard - $25.99\n",
+ "\n",
+ "If you need further details or have any other requests, feel free to ask!\n",
+ "\u001b[0m"
+ ]
+ }
+ ],
+ "source": [
+ "res = agent.chat(f\"Extract me all the keyboard names and prices from the following website: {link}\")"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {
+ "id": "Eej-kiuZfi1R"
+ },
+ "source": [
+ "### Print the result"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "colab": {
+ "base_uri": "https://localhost:8080/"
+ },
+ "id": "QJSvlPpJflJN",
+ "outputId": "ca3f12fb-c44d-43cf-9086-47006e06c159"
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Here are all the keyboard names and their prices extracted from the eBay website:\n",
+ "\n",
+ "1. Logitech K380 Wireless Bluetooth Keyboard - $29.99\n",
+ "2. Lot OF 10 - USB Wired Standard Layout Keyboard 104-Key Mixed Brand Models - $44.99\n",
+ "3. EliteForce Gaming Keyboard LED Rainbow Backlit Light up Membrane Keyboard - $13.59\n",
+ "4. MADLIONS MAD 60/68HE Gaming Magnetic Switch Keyboard Wired Key Web Drive Custom - $59.45 to $117.63\n",
+ "5. HP 125 Wired Keyboard US, Black - $11.99\n",
+ "6. Mini Wireless Keyboard Bluetooth Compatible For Phone Tablet Color Backlit - $8.45\n",
+ "7. K1000 10 inch Ultra Thin 78 Keys Wired Keyboard Mini USB Slim PC Keyboard Keypad - $11.11\n",
+ "8. Razer BlackWidow V4 Wired Mechanical Green Switch Gaming Keyboard w/ Chroma RGB - $89.99\n",
+ "9. SteelSeries Apex Gaming Keyboard German 5 Zone RGB LED Backlit Low Profile 64148 - $71.20\n",
+ "10. Logitech Wave Keys MK670 Combo Keyboard with Mouse - $35.95\n",
+ "11. Razer BlackWidow V4 Pro 75% Wireless Gaming Keyboard - $224.99\n",
+ "12. Logitech Casa Pop-Up Desk Work From Home Kit Compact Wireless Keyboard - $134.99\n",
+ "13. Razer Huntsman Mini Wired Optical Clicky Switch Keyboard - $67.99\n",
+ "14. Cherry Kw X Ulp Ultra Slim Wireless Mechanical Keyboard G8u-27000ltbus-2 - $109.99\n",
+ "15. Logitech MX Keys S Wireless Keyboard, Low Profile, Quiet Typing, Backlighting - $84.99\n",
+ "16. Large Print Backlit Keyboard Wired USB Lighted Computer Keyboard 104 Keys - $23.21\n",
+ "17. Cherry LPOS Wired USB Programable Keyboard P/N: G86-71400EUADAA (Open Box) - $99.99\n",
+ "18. ATTACK SHARK M87 Wireless Gaming Keyboard TKL Bluetooth5.0/2.4G RGB Rechargeable - $22.86 to $44.49\n",
+ "19. Mini Wireless Bluetooth Keyboard Compatible With Android Windows Mac System - $8.45\n",
+ "20. RGB PC Gaming Keyboard Mouse & Headset Set LED Gamer Bundle Mechanical Kits 4IN1 - $36.90\n",
+ "21. Gaming Mechanical Keyboard Retro Inspired Typewriter-Style Pink - Not available\n",
+ "22. HP WIRED USB SLIM KEYBOARD 803181-001 Lot of 6 - $59.99\n",
+ "23. Philips SPK6254 USB Wired Keyboard (SPANISH) - $12.75\n",
+ "24. MICROSOFT SCULPT ERGONOMIC KEYBOARD WITH KEYPAD & MOUSE - $169.99\n",
+ "25. Leopold FC660M 66key Mechanical Mini Keyboard Black - $39.95\n",
+ "26. Dell KB216-BK-US Wired Keyboard - Black - $8.00\n",
+ "27. 35 Keys Bluetooth-compatible Wireless Numeric Keypad Dual Mode Keyboard - $15.19 to $15.39\n",
+ "28. Microsoft Universal Foldable Keyboard Portable Wireless Bluetooth - $62.03\n",
+ "29. K3 Mechanical Keyboard USB Charging 100 Keys Gaming Wired Keyboard Wired Russian - $37.80\n",
+ "30. 60% Wireless Mechanical Gaming Keyboard RGB Backlit, Triple Mode Bluetooth/USB-C - Not listed\n",
+ "31. 65% Thocky Wireless Mechanical Keyboard | MMD Princess Tactile | Marrs Green Key - $229.00\n",
+ "32. Logitech G413 SE Mechanical Gaming Keyboard - Black, English - US - $29.99\n",
+ "33. Foldable Keyboard Compatible Bluetooth Portable Office Keyboard Tablet Universal - $16.72 to $17.38\n",
+ "34. MC-8017 Wired 78 Keys USB Wired Mini Multimedia Keyboard for Laptops PC Computer - $30.99\n",
+ "35. Original Lenovo Thinkpad KU-1255 USB Wired Keyboard TrackPoint 0B47190 - $62.99\n",
+ "36. HP 975 Dual-Mode Wireless Keyboard for Business - Brand New Sealed - $62.96\n",
+ "37. Kuno Universal Tablet Keyboards with Trackpad - $55.00\n",
+ "38. ALTEC LANSING ALBC6314 Wireless Keyboard & Mouse Combo (ENGLISH) - $15.95\n",
+ "39. Higround x One Piece x HG 68 Keycaps Set ZORO - Not specified\n",
+ "40. Original Lenovo SK-8845CR UltraNav USB Wired Keyboard - US English NEW - $99.99\n",
+ "41. Mini Wireless Bluetooth Keyboard Remote Touchpad Smart-TV Android TV PC Backlit - $13.99\n",
+ "42. STICKERS Black QWERTY Keyboard Desktop, Laptop, Computer, PC - $2.34\n",
+ "43. New Logitech MX Keys S Full-Size Bluetooth Wireless Keyboard Black 920-011406 - $78.98\n",
+ "44. COX Endeavour Original Retro Capacitance Non-Contact Keyboard 35g/50g, ENG/KOR - $139.72\n",
+ "45. Luminous Keyboard Stickers Russian Arabic English French Glow In The Dark Decal - $1.93\n",
+ "46. keyboard gaming - Not specified\n",
+ "47. CHONCHOW RGB Compact Gaming Keyboard - $15.00\n",
+ "48. Glorious GMMK Compact 60% RGB Wired Modular Mechanical Keyboard - Brown Switches - $20.00\n",
+ "49. Large Print Backlit Keyboard, Wired USB Lighted Computer Keyboards with 7-Color - $29.18\n",
+ "50. Office Shortcut Keypad Copy Paste Select All Cut Mini USB Mechanical Keyboard - $9.09 to $10.49\n",
+ "51. Rechargable Bluetooth 3.0 Keyboard - Black - $11.99\n",
+ "52. Bluetooth Wireless Keyboard Mini Slim Rechargeable Keypad for Smart Phone Tablet - $14.59\n",
+ "53. French/English Language 78 Keys Slim Lightweight Portable Wired USB Keyboard - $23.99\n",
+ "54. ATTACK SHARK AK680 60% Wired Mechanical Gaming Keyboard, Hot-Swappable - Not listed\n",
+ "55. Dell Keyboard KB522p2 Genuine OEM Wired Business Multimedia Black QWERTY - $21.95\n",
+ "56. Microsoft Natural Ergonomic Keyboard 4000 v1.0 KU-0462 USB Wired - Not specified\n",
+ "57. Dustsilver D66 Wireless Mechanical Keyboard Peach - $39.99\n",
+ "58. Microsoft Logitech Keyboards: K350 M510 K850 Natural Ergonomic Wireless Comfort - $14.99 to $49.99\n",
+ "59. IBM Keyboard PS2 Model No. KB-0225 P/N 89P8440 - $19.99\n",
+ "60. Razer x Arknights Rhodes Island Blackwidow TKL Wired Mechanical Keyboard & Mouse - $79.99 to $279.99\n",
+ "61. Rechargeable Backlit Bluetooth Touchpad Keyboard Mouse For Android IOS Tablet PC - Not specified\n",
+ "62. Split Mechanical Keyboard 40-key Layout Programmable VIA Change Mini Keyboard US - $109.40 to $127.67\n",
+ "63. Glorious GMMK2 96% Fox Prebuilt Gaming Keyboard, Black - $32.19\n",
+ "64. Split Keyboard Corne USBC - Ergonomic Keyboard - $180.55 to $263.10\n",
+ "65. Altec Lansing ALGK8404 Wired Mechanical Gaming Keyboard RGB Ergonomic WHITE/GRAY - $29.95\n",
+ "66. Philips SPT6501 Wireless Keyboard + Mouse combo (SPANISH) - Not specified\n",
+ "67. Foldable Wireless Bluetooth Keyboard with Touchpad for Windows iOS Android Gray - $28.99\n",
+ "68. Russian/English Language 78 Keys Slim Lightweight Portable Wired USB Keyboard - $25.99\n",
+ "\n",
+ "If you need further details or have any other requests, feel free to ask!\n"
+ ]
+ }
+ ],
+ "source": [
+ "print(res)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {
+ "id": "-1SZT8VzTZNd"
+ },
+ "source": [
+ "## 🔗 Resources"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {
+ "id": "dUi2LtMLRDDR"
+ },
+ "source": [
+ "\n",
+ "
\n",
+ "
\n",
+ "