11import { LibSQLStore , LibSQLVector } from '@mastra/libsql' ;
2+ import { exaMCP , playwrightMCP } from '../mcp' ;
23
34import { Agent } from '@mastra/core/agent' ;
45import { Memory } from '@mastra/memory' ;
5- import { playwrightMCP , exaMCP } from '../mcp' ;
6- import { openai } from '@ai-sdk/openai' ;
7- import { google } from '@ai-sdk/google' ;
6+ import { anthropic } from '@ai-sdk/anthropic' ;
87import { databaseTools } from '../tools/database-tools' ;
8+ import { google } from '@ai-sdk/google' ;
9+ import { openai } from '@ai-sdk/openai' ;
910
1011// Path is relative to .mastra/output/ when bundled
1112const storage = new LibSQLStore ( {
@@ -68,6 +69,7 @@ export const webAutomationAgent = new Agent({
6869 **When given database participant information:**
6970 - Immediately use the data to populate web forms
7071 - Navigate to the appropriate website (research if URL unknown)
72+ - If the participant has a preferred language, change the website language to match it
7173 - Fill all available fields with the participant data
7274 - Proceed through the application process autonomously
7375
@@ -79,6 +81,8 @@ export const webAutomationAgent = new Agent({
7981
8082 **Web Navigation:**
8183 - Navigate to websites and analyze page structure
84+ - If participant has a preferred language, immediately look for and change the website language
85+ - Common language selectors: language dropdowns, flag icons, "EN" buttons, or language preference settings
8286 - Identify and interact with elements (buttons, forms, links, dropdowns)
8387
8488 When performing actions:
0 commit comments