Building an AI Agent: Creating a Movie Search Assistant Agent
Step 1: Create an Agent Application in Dify Console
Step 2: Add Previously Created Custom Tools
Step 3: Add Dify's Built-in "BingWebSearch" Tool
Step 4: Write a Simple Prompt
You are a professional film critic who can help review movies.
You can use GetMoviesByKeyword to search for movies,
use bing_web_search to determine the cast information of the movie.
Always output professional movie review information in English.
After selecting the appropriate LLM(gpt-4o) in the upper right corner, you can debug on the same page.
Step 5: Review the Agent's Process
In the interface above, we can see the model breaking down and analyzing what to do step by step, and automatically calling tools. Click on the Agent log to see the complete iteration process.
Step 6: Publish the Agent
Click "Publish" in the upper right corner to complete the construction of a simple Agent with Tools.
Lab 2 is now complete. Congratulations, you have learned and mastered how to build an Agent with Tools in Dify.