Building an AI Agent: Creating a Movie Search Assistant Agent

Step 1: Create an Agent Application in Dify Console

Create an agent

Step 2: Add Previously Created Custom Tools

Select a custom tool

Step 3: Add Dify's Built-in "BingWebSearch" Tool

Select a build 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.

Debug

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.

Agent log

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.