Icon

Challenge 7- AI-Generated Football Players Scouting Report

<p><strong>Beginner-friendly objective(s):</strong> 1. Set up the initial data reading process by configuring the CSV Reader node to import the dataset. 2. Filter the dataset based on specific criteria using the Row Filter node.<br><br><strong>Intermediate-friendly objective(s):</strong> 3. Convert the filtered data into JSON format and manage flow variables for dynamic workflow control. 4. Create and configure prompts for the language model using Variable Expression nodes.<br><br><strong>Advanced objective(s):</strong> 5. Integrate the language model interaction by setting up the LLM Prompter nodes to generate responses based on the prompts. 6. Compile the final report by configuring the Report PDF Writer node to output the results.<br><br><strong>Solution Summary:</strong> The solution involves a multi-step workflow that begins with reading and filtering a dataset of player statistics. The filtered data is then converted into JSON format, and flow variables are managed to dynamically control the workflow. Prompts are created for a language model, which generates responses that are compiled into a final report. This comprehensive approach combines data preprocessing, JSON conversion, and language model interaction to deliver insightful analysis.<br><br><strong>Solution Details:</strong> The workflow starts with a CSV Reader node configured to import a dataset from a local file. The data is then filtered using a Row Filter node, which selects rows based on specific conditions such as competition, age, and nationality. The filtered data is converted into JSON format using the Table to JSON node, which is configured to handle a wide range of columns and omit missing values. Flow variables are managed using the Table Row to Variable node, which converts table rows into variables for dynamic workflow control. Next, Variable Expression nodes are used to create prompts for the language model. These nodes concatenate strings and flow variables to generate specific prompts for analysis. The OpenAI Authenticator node is configured to authenticate with the OpenAI API, ensuring secure access to the language model. The LLM Prompter nodes are then set up to interact with the language model, using the generated prompts to obtain responses. These nodes are configured to handle system messages and store responses in a specified column. Finally, the Report PDF Writer node is configured to compile the results into a PDF report. This node is set to save the report locally, with specific handling for existing files and a defined timeout period. The workflow effectively combines data preprocessing, JSON conversion, and language model interaction to deliver a comprehensive solution.</p>

URL: Dataset https://www.kaggle.com/datasets/hubertsidorowicz/football-players-stats-2024-2025/data

Filter any competition of YOUR choice, age less than 20, and select for home grown players

e.g: If you are looking for a player in EPL, then look for player who has English nationality

Challenge 7: AI-Generated Football Players Scouting Report


Level: Medium

Description: You are working as a Data Analyst for a top European football club that is looking to recruit new talent for the upcoming season. The club has provided you with the Football Players Stats 2024-2025 dataset and wants to use AI-powered scouting to find undervalued players, rising stars, etc. To answer these questions, you have been provided with three sample prompts. Either use those prompts are be creative with your own prompts and come up with a report for the scout. Note: It is not mandatory to use Open AI LLM models. You can also use local LLMs.

Beginner-friendly objective(s): 1. Set up the initial data reading process by configuring the CSV Reader node to import the dataset. 2. Filter the dataset based on specific criteria using the Row Filter node.

Intermediate-friendly objective(s): 3. Convert the filtered data into JSON format and manage flow variables for dynamic workflow control. 4. Create and configure prompts for the language model using Variable Expression nodes. 5. Integrate the language model interaction by setting up the LLM Prompter nodes to generate responses based on the prompts. 6. Compile the final report by configuring the Report PDF Writer node to output the results.

Prompt ideas:

  1. "Summarize the strengths and weaknesses of Player X using the provided data."

  2. "Who is the most well-rounded midfielder based on available statistics?"

  3. "Which players have similar playing styles to Player X based on their stats?”

Read data
CSV Reader
pass the flow variable
OpenAI Authenticator
prompt 3
Variable Expression
GPT-mini 4 o
OpenAI LLM Selector
pass credentials
Credentials Configuration
Prompt the LLM (2nd prompt)
LLM Prompter
back to table row
Variable to Table Row
Convert row to flow variable
Table Row to Variable
create report
Component
Comp: EPL,age < 20,nation: Eng
Row Filter
Prompt the LLM (1st prompt)
LLM Prompter
Convert to JSON
Table to JSON
prompt 2
Variable Expression
Report Template Creator
back to table row
Variable to Table Row
write pdf
Report PDF Writer
Prompt the LLM (3rd prompt)
LLM Prompter
prompt 1
Variable Expression
back to table row
Variable to Table Row

Nodes

Extensions

Links