You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -60,20 +60,19 @@ agent.print_response("Extract key details from https://docs.agno.com/introductio
60
60
61
61
Running this code will scrape the specified URL and return formatted content your agent can use.
62
62
63
-
:::tip Environment variable token
64
-
65
-
You can also set the APIFY_API_TOKEN environment variable instead of passing it directly in the code.
66
-
67
-
:::
68
-
69
-
### Advanced Scenario: Travel Planning Agent
63
+
### Advanced scenario: Travel planning agent
70
64
71
65
Combine multiple Apify Actors to create a powerful travel planning agent. This example uses the RAG Web Browser and Google Places Crawler to gather travel insights and local business data.
72
66
73
67
```python
68
+
import os
69
+
74
70
from agno.agent import Agent
75
71
from agno.tools.apify import ApifyTools
76
72
73
+
os.environ["APIFY_API_TOKEN"] ="YOUR_APIFY_API_TOKEN"# Replace with your Apify API token
74
+
os.environ["OPENAI_API_KEY"] ="YOUR_OPENAI_API_KEY"# Replace with your OpenAI API key
75
+
77
76
# Create a travel planning agent
78
77
agent = Agent(
79
78
name="Travel Planner",
@@ -85,8 +84,7 @@ agent = Agent(
85
84
actors=[
86
85
"apify/rag-web-browser", # For general web research
87
86
"compass/crawler-google-places"# For location-based data
88
-
],
89
-
apify_api_token="YOUR_APIFY_API_TOKEN"
87
+
]
90
88
)
91
89
],
92
90
show_tool_calls=True,
@@ -117,7 +115,7 @@ Browse the [Apify Store](https://apify.com/store) to find additional Actors for
117
115
118
116
:::
119
117
120
-
### Available Apify Tools
118
+
### Available Apify tools
121
119
122
120
Agno supports any Apify Actor via the ApifyTools class. You can specify a single Actor ID or a list of Actor IDs to register multiple tools for your agent at once.
0 commit comments