$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "sessionId": "my-project",
< "memories": [
< {
< "text": "The customer prefers fast shipping over lower prices",
< "metadata": {
< "type": "preference",
< "customer_id": "123"
< }
< },
< {
< "text": "Product X works best with Product Y for home automation",
< "metadata": {
< "type": "knowledge",
< "category": "products"
< }
< },
< {
< "text": "User asked about return policy on December 10th",
< "metadata": {
< "type": "conversation",
< "date": "2024-12-10"
< }
< }
< ],
< "query": "What does the customer prefer?",
< "queries": [
< "What does the customer prefer?",
< "Product recommendations",
< "Support history"
< ],
< "memoryIds": [
< "mem_123",
< "mem_456"
< ],
< "updates": {
< "text": "Updated memory text",
< "metadata": {
< "updated": true,
< "version": 2
< }
< },
< "metadataFilter": {
< "type": "preference"
< },
< "chatMessage": "What products would you recommend based on my preferences?",
< "chatHistory": [
< {
< "role": "user",
< "content": "What products do you recommend?"
< },
< {
< "role": "assistant",
< "content": "Based on your preferences, I recommend Product X."
< }
< ],
< "importData": {
< "memories": [
< {
< "text": "Sample memory to import",
< "metadata": {
< "source": "import"
< }
< }
< ]
< },
< "actorInput": {
< "searchStrings": [
< "coffee shops in NYC"
< ],
< "maxResults": 50
< },
< "actorConfig": {
< "memorizeFields": [
< "title",
< "description",
< "address",
< "rating"
< ],
< "limit": 100,
< "skipDuplicates": true,
< "enrichWithMetadata": true
< },
< "integrationConfig": {
< "syntheticDataActor": "ruv/ai-synthetic-data-generator",
< "dataType": "ecommerce",
< "count": 100,
< "memorizeFields": [
< "title",
< "description",
< "category"
< ]
< },
< "scraperConfig": {
< "urls": [
< "https://example.com/docs"
< ],
< "selector": "article",
< "maxPages": 10
< },
< "tradingSymbols": [
< "BTC",
< "ETH",
< "SOL"
< ],
< "tradingHistoryQuery": "high confidence BUY signals for BTC",
< "tradingActorConfig": {
< "actorId": "ruv/neural-trader-system",
< "action": "analyze",
< "riskProfile": "moderate",
< "memory": 2048,
< "timeout": 300
< },
< "command": "what do you know about customers"
<}
<EOF
$curl "https://api.apify.com/v2/acts/ruv~ai-memory-engine/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'