Skip to content

Commit 2f13246

Browse files
committed
Resolve merge conflict in web-automation-agent.ts preserving language preference instructions
2 parents 707ad00 + 605c3e9 commit 2f13246

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

mastra-test-app/src/mastra/agents/web-automation-agent.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { LibSQLStore, LibSQLVector } from '@mastra/libsql';
2+
import { exaMCP, playwrightMCP } from '../mcp';
23

34
import { Agent } from '@mastra/core/agent';
45
import { 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';
87
import { 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
1112
const 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

Comments
 (0)