curl --request POST \
--url https://osmosis.gulp.dev/store_knowledge \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"tenant_id": "webarena",
"query": "Find and purchase a red Nike running shoe in size 10",
"turns": [
{
"turn": 1,
"inputs": "On shopping website homepage. Need to search for red Nike running shoes.",
"decision": "{'\''action_type'\'': '\''click'\'', '\''element_name'\'': '\''search_bar'\'', '\''text'\'': ['\''Nike red running shoes'\''], '\''element_role'\'': '\''searchbox'\'', '\''coords'\'': [120, 35], '\''url'\'': '\''https://shop.example.com'\''}",
"result": "click [120, 35] where [120, 35] is searchbox '\''Search products...'\'' followed by typing '\''Nike red running shoes'\''",
"memory": "User wants red Nike running shoes. Starting search from homepage."
},
{
"turn": 2,
"inputs": "Search results show multiple Nike running shoes. Need to select size 10 in red.",
"decision": "{'\''action_type'\'': '\''click'\'', '\''element_name'\'': '\''product_link'\'', '\''text'\'': ['\''Nike Air Zoom Pegasus - Red'\''], '\''element_role'\'': '\''link'\'', '\''coords'\'': [250, 320], '\''url'\'': '\''https://shop.example.com/products/nike-air-zoom-pegasus?color=red&size=10'\''}",
"result": "click [250, 320] where [250, 320] is link '\''Nike Air Zoom Pegasus - Red'\'' in size 10 with 4.8/5 stars (2,453 reviews)",
"memory": "Selected Pegasus model in red, size 10 based on positive reviews and exact match to requirements"
}
],
"success": "true",
"agent_type": "browser",
"timestamp": "2024-03-14T10:30:00Z",
"metadata": {
"browser_type": "chrome",
"site": "shopping_admin",
"interaction_duration_seconds": 120,
"user_satisfaction_score": 0.95
}
}'