[{"data":1,"prerenderedAt":1995},["ShallowReactive",2],{"/memos_cloud/mem_operations/add_message":3,"surround-/memos_cloud/mem_operations/add_message":1981},{"id":4,"title":5,"avatar":6,"banner":6,"body":7,"category":6,"desc":1974,"description":170,"extension":1975,"links":6,"meta":1976,"navigation":6,"path":1977,"seo":1978,"stem":1979,"__hash__":1980},"docs/en/memos_cloud/mem_operations/add_message.md","Add Message",null,{"type":8,"value":9,"toc":1962},"minimark",[10,34,36,41,44,66,92,94,98,124,126,130,150,158,160,164,756,767,769,773,778,781,1346,1348,1352,1355,1609,1611,1615,1618,1745,1747,1751,1759,1958],[11,12,13,29],"warning",{},[14,15,16,24,27],"p",{},[17,18,19],"strong",{},[20,21,23],"a",{"href":22},"/api_docs/core/add_message","Go directly to API Docs",[25,26],"br",{},[25,28],{},[14,30,31],{},[17,32,33],{},"This article focuses on functional explanation. For detailed interface fields and limits, please click the link above.",[25,35],{},[37,38,40],"h2",{"id":39},"_1-how-to-add-messages","1. How to add messages?",[14,42,43],{},"The basis of memory comes from raw message content. MemOS processes the messages you add into memories for subsequent retrieval and use. When building AI applications, whether you have started using MemOS for user memory management or not, you can choose the appropriate timing to add messages based on actual scenarios, including:",[45,46,47,54,60],"ul",{},[48,49,50,53],"li",{},[17,51,52],{},"One-time Import",": Import existing user historical conversations into MemOS with one click to quickly establish initial memories;",[48,55,56,59],{},[17,57,58],{},"Real-time Addition",": Add messages to MemOS in real-time every time the user sends a message;",[48,61,62,65],{},[17,63,64],{},"Batch Addition by Turn",": Set to add user messages to MemOS every certain number of dialogue turns according to business needs.",[67,68,69,74],"note",{},[14,70,71],{},[17,72,73],{}," Why is memory important?",[75,76,78],"div",{"style":77},"padding-left: 2em;",[45,79,80,83,86,89],{},[48,81,82],{},"Enables cross-session long-term memory, avoiding information loss after the conversation ends;",[48,84,85],{},"Makes AI understand the user better and better as interactions accumulate;",[48,87,88],{},"Continuously writes new information during the conversation, dynamically updating user memories;",[48,90,91],{},"Shares the same user's memory across your multiple applications or products to achieve a consistent user experience.",[25,93],{},[37,95,97],{"id":96},"_2-key-parameters","2. Key Parameters",[45,99,100,106,112,118],{},[48,101,102,105],{},[17,103,104],{},"User ID (user_id)",": Used to identify the unique user to whom the message belongs. Currently, all added conversation information needs to be associated with a specific and unique user identifier.",[48,107,108,111],{},[17,109,110],{},"Conversation ID (conversation_id)",": Used to identify the unique conversation to which the message belongs. Currently, all added conversation information needs to be associated with a specific and unique conversation identifier.",[48,113,114,117],{},[17,115,116],{},"Messages (messages)",": An ordered list of user and AI conversation content added to MemOS.",[48,119,120,123],{},[17,121,122],{},"Meta Info (info)",": Supplementary information defined by you and submitted with the message, which can be used for filtering during subsequent memory retrieval.",[25,125],{},[37,127,129],{"id":128},"_3-working-principle","3. Working Principle",[45,131,132,138,144],{},[48,133,134,137],{},[17,135,136],{},"Information Extraction",": MemOS uses LLM internally to extract facts, preferences, etc., from messages and processes them into memories, including: factual memory, preference memory, tool memory, etc.",[48,139,140,143],{},[17,141,142],{},"Conflict Resolution",": Existing memories are checked for duplicates or contradictions and updated.",[48,145,146,149],{},[17,147,148],{},"Memory Storage",": The resulting memories are stored using vector databases and graph databases for fast recall during subsequent retrieval.",[14,151,152,153,157],{},"All the above processes can be triggered by simply calling the ",[154,155,156],"code",{},"add/message"," interface, without the need for you to manually operate on user memories.",[25,159],{},[37,161,163],{"id":162},"_4-quick-start","4. Quick Start",[165,166,171],"pre",{"className":167,"code":168,"language":169,"meta":170,"style":170},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import os\nimport requests\nimport json\n\n# Replace with your MemOS API Key\nos.environ[\"MEMOS_API_KEY\"] = \"YOUR_API_KEY\"\nos.environ[\"MEMOS_BASE_URL\"] = \"https://api.memt.ai/openmem/v1\"\n\ndata = {\n    \"user_id\": \"memos_user_123\",\n    \"conversation_id\": \"0610\",\n    \"messages\": [\n      {\"role\": \"user\", \"content\": \"I'm planning a trip to Guangzhou during the summer vacation. What chain hotels are available for accommodation?\"},\n      {\"role\": \"assistant\", \"content\": \"You can consider [7 Days Inn, JI Hotel, Hilton], etc.\"},\n      {\"role\": \"user\", \"content\": \"I choose 7 Days Inn\"},\n      {\"role\": \"assistant\", \"content\": \"Okay, ask me if you have any other questions.\"}\n    ]\n  }\nheaders = {\n  \"Content-Type\": \"application/json\",\n  \"Authorization\": f\"Token {os.environ['MEMOS_API_KEY']}\"\n}\nurl = f\"{os.environ['MEMOS_BASE_URL']}/add/message\"\n\nres = requests.post(url=url, headers=headers, data=json.dumps(data))\n\nprint(f\"result: {res.json()}\")\n","python","",[154,172,173,186,194,202,209,216,257,286,291,303,327,348,363,407,446,484,523,529,535,545,567,612,617,652,657,718,723],{"__ignoreMap":170},[174,175,178,182],"span",{"class":176,"line":177},"line",1,[174,179,181],{"class":180},"s7zQu","import",[174,183,185],{"class":184},"sTEyZ"," os\n",[174,187,189,191],{"class":176,"line":188},2,[174,190,181],{"class":180},[174,192,193],{"class":184}," requests\n",[174,195,197,199],{"class":176,"line":196},3,[174,198,181],{"class":180},[174,200,201],{"class":184}," json\n",[174,203,205],{"class":176,"line":204},4,[174,206,208],{"emptyLinePlaceholder":207},true,"\n",[174,210,212],{"class":176,"line":211},5,[174,213,215],{"class":214},"sHwdD","# Replace with your MemOS API Key\n",[174,217,219,222,226,230,233,236,240,242,245,248,251,254],{"class":176,"line":218},6,[174,220,221],{"class":184},"os",[174,223,225],{"class":224},"sMK4o",".",[174,227,229],{"class":228},"swJcz","environ",[174,231,232],{"class":224},"[",[174,234,235],{"class":224},"\"",[174,237,239],{"class":238},"sfazB","MEMOS_API_KEY",[174,241,235],{"class":224},[174,243,244],{"class":224},"]",[174,246,247],{"class":224}," =",[174,249,250],{"class":224}," \"",[174,252,253],{"class":238},"YOUR_API_KEY",[174,255,256],{"class":224},"\"\n",[174,258,260,262,264,266,268,270,273,275,277,279,281,284],{"class":176,"line":259},7,[174,261,221],{"class":184},[174,263,225],{"class":224},[174,265,229],{"class":228},[174,267,232],{"class":224},[174,269,235],{"class":224},[174,271,272],{"class":238},"MEMOS_BASE_URL",[174,274,235],{"class":224},[174,276,244],{"class":224},[174,278,247],{"class":224},[174,280,250],{"class":224},[174,282,283],{"class":238},"https://api.memt.ai/openmem/v1",[174,285,256],{"class":224},[174,287,289],{"class":176,"line":288},8,[174,290,208],{"emptyLinePlaceholder":207},[174,292,294,297,300],{"class":176,"line":293},9,[174,295,296],{"class":184},"data ",[174,298,299],{"class":224},"=",[174,301,302],{"class":224}," {\n",[174,304,306,309,312,314,317,319,322,324],{"class":176,"line":305},10,[174,307,308],{"class":224},"    \"",[174,310,311],{"class":238},"user_id",[174,313,235],{"class":224},[174,315,316],{"class":224},":",[174,318,250],{"class":224},[174,320,321],{"class":238},"memos_user_123",[174,323,235],{"class":224},[174,325,326],{"class":224},",\n",[174,328,330,332,335,337,339,341,344,346],{"class":176,"line":329},11,[174,331,308],{"class":224},[174,333,334],{"class":238},"conversation_id",[174,336,235],{"class":224},[174,338,316],{"class":224},[174,340,250],{"class":224},[174,342,343],{"class":238},"0610",[174,345,235],{"class":224},[174,347,326],{"class":224},[174,349,351,353,356,358,360],{"class":176,"line":350},12,[174,352,308],{"class":224},[174,354,355],{"class":238},"messages",[174,357,235],{"class":224},[174,359,316],{"class":224},[174,361,362],{"class":224}," [\n",[174,364,366,369,371,374,376,378,380,383,385,388,390,393,395,397,399,402,404],{"class":176,"line":365},13,[174,367,368],{"class":224},"      {",[174,370,235],{"class":224},[174,372,373],{"class":238},"role",[174,375,235],{"class":224},[174,377,316],{"class":224},[174,379,250],{"class":224},[174,381,382],{"class":238},"user",[174,384,235],{"class":224},[174,386,387],{"class":224},",",[174,389,250],{"class":224},[174,391,392],{"class":238},"content",[174,394,235],{"class":224},[174,396,316],{"class":224},[174,398,250],{"class":224},[174,400,401],{"class":238},"I'm planning a trip to Guangzhou during the summer vacation. What chain hotels are available for accommodation?",[174,403,235],{"class":224},[174,405,406],{"class":224},"},\n",[174,408,410,412,414,416,418,420,422,425,427,429,431,433,435,437,439,442,444],{"class":176,"line":409},14,[174,411,368],{"class":224},[174,413,235],{"class":224},[174,415,373],{"class":238},[174,417,235],{"class":224},[174,419,316],{"class":224},[174,421,250],{"class":224},[174,423,424],{"class":238},"assistant",[174,426,235],{"class":224},[174,428,387],{"class":224},[174,430,250],{"class":224},[174,432,392],{"class":238},[174,434,235],{"class":224},[174,436,316],{"class":224},[174,438,250],{"class":224},[174,440,441],{"class":238},"You can consider [7 Days Inn, JI Hotel, Hilton], etc.",[174,443,235],{"class":224},[174,445,406],{"class":224},[174,447,449,451,453,455,457,459,461,463,465,467,469,471,473,475,477,480,482],{"class":176,"line":448},15,[174,450,368],{"class":224},[174,452,235],{"class":224},[174,454,373],{"class":238},[174,456,235],{"class":224},[174,458,316],{"class":224},[174,460,250],{"class":224},[174,462,382],{"class":238},[174,464,235],{"class":224},[174,466,387],{"class":224},[174,468,250],{"class":224},[174,470,392],{"class":238},[174,472,235],{"class":224},[174,474,316],{"class":224},[174,476,250],{"class":224},[174,478,479],{"class":238},"I choose 7 Days Inn",[174,481,235],{"class":224},[174,483,406],{"class":224},[174,485,487,489,491,493,495,497,499,501,503,505,507,509,511,513,515,518,520],{"class":176,"line":486},16,[174,488,368],{"class":224},[174,490,235],{"class":224},[174,492,373],{"class":238},[174,494,235],{"class":224},[174,496,316],{"class":224},[174,498,250],{"class":224},[174,500,424],{"class":238},[174,502,235],{"class":224},[174,504,387],{"class":224},[174,506,250],{"class":224},[174,508,392],{"class":238},[174,510,235],{"class":224},[174,512,316],{"class":224},[174,514,250],{"class":224},[174,516,517],{"class":238},"Okay, ask me if you have any other questions.",[174,519,235],{"class":224},[174,521,522],{"class":224},"}\n",[174,524,526],{"class":176,"line":525},17,[174,527,528],{"class":224},"    ]\n",[174,530,532],{"class":176,"line":531},18,[174,533,534],{"class":224},"  }\n",[174,536,538,541,543],{"class":176,"line":537},19,[174,539,540],{"class":184},"headers ",[174,542,299],{"class":224},[174,544,302],{"class":224},[174,546,548,551,554,556,558,560,563,565],{"class":176,"line":547},20,[174,549,550],{"class":224},"  \"",[174,552,553],{"class":238},"Content-Type",[174,555,235],{"class":224},[174,557,316],{"class":224},[174,559,250],{"class":224},[174,561,562],{"class":238},"application/json",[174,564,235],{"class":224},[174,566,326],{"class":224},[174,568,570,572,575,577,579,583,586,590,592,594,596,598,601,603,605,607,610],{"class":176,"line":569},21,[174,571,550],{"class":224},[174,573,574],{"class":238},"Authorization",[174,576,235],{"class":224},[174,578,316],{"class":224},[174,580,582],{"class":581},"spNyl"," f",[174,584,585],{"class":238},"\"Token ",[174,587,589],{"class":588},"sbssI","{",[174,591,221],{"class":184},[174,593,225],{"class":224},[174,595,229],{"class":228},[174,597,232],{"class":224},[174,599,600],{"class":224},"'",[174,602,239],{"class":238},[174,604,600],{"class":224},[174,606,244],{"class":224},[174,608,609],{"class":588},"}",[174,611,256],{"class":238},[174,613,615],{"class":176,"line":614},22,[174,616,522],{"class":224},[174,618,620,623,625,627,629,631,633,635,637,639,641,643,645,647,649],{"class":176,"line":619},23,[174,621,622],{"class":184},"url ",[174,624,299],{"class":224},[174,626,582],{"class":581},[174,628,235],{"class":238},[174,630,589],{"class":588},[174,632,221],{"class":184},[174,634,225],{"class":224},[174,636,229],{"class":228},[174,638,232],{"class":224},[174,640,600],{"class":224},[174,642,272],{"class":238},[174,644,600],{"class":224},[174,646,244],{"class":224},[174,648,609],{"class":588},[174,650,651],{"class":238},"/add/message\"\n",[174,653,655],{"class":176,"line":654},24,[174,656,208],{"emptyLinePlaceholder":207},[174,658,660,663,665,668,670,674,677,681,683,685,687,690,692,695,697,700,702,705,707,710,712,715],{"class":176,"line":659},25,[174,661,662],{"class":184},"res ",[174,664,299],{"class":224},[174,666,667],{"class":184}," requests",[174,669,225],{"class":224},[174,671,673],{"class":672},"s2Zo4","post",[174,675,676],{"class":224},"(",[174,678,680],{"class":679},"sHdIc","url",[174,682,299],{"class":224},[174,684,680],{"class":672},[174,686,387],{"class":224},[174,688,689],{"class":679}," headers",[174,691,299],{"class":224},[174,693,694],{"class":672},"headers",[174,696,387],{"class":224},[174,698,699],{"class":679}," data",[174,701,299],{"class":224},[174,703,704],{"class":672},"json",[174,706,225],{"class":224},[174,708,709],{"class":672},"dumps",[174,711,676],{"class":224},[174,713,714],{"class":672},"data",[174,716,717],{"class":224},"))\n",[174,719,721],{"class":176,"line":720},26,[174,722,208],{"emptyLinePlaceholder":207},[174,724,726,729,731,734,737,739,742,744,746,749,751,753],{"class":176,"line":725},27,[174,727,728],{"class":672},"print",[174,730,676],{"class":224},[174,732,733],{"class":581},"f",[174,735,736],{"class":238},"\"result: ",[174,738,589],{"class":588},[174,740,741],{"class":672},"res",[174,743,225],{"class":224},[174,745,704],{"class":672},[174,747,748],{"class":224},"()",[174,750,609],{"class":588},[174,752,235],{"class":238},[174,754,755],{"class":224},")\n",[67,757,758],{},[14,759,760,761,225],{},"Want to know what memories were generated? Copy the above code and run it, then go to ",[20,762,764],{"href":763},"/memos_cloud/mem_operations/search_memory",[17,765,766],{},"Search Memory",[25,768],{},[37,770,772],{"id":771},"_5-usage-scenarios","5. Usage Scenarios",[774,775,777],"h3",{"id":776},"_51-real-time-conversation-import","5.1 Real-time Conversation Import",[14,779,780],{},"You can call the interface to add messages in real-time every time the user receives a model reply, synchronizing the conversation between the user and the assistant with MemOS at any time. MemOS will continuously update user memories in the backend based on new conversations.",[165,782,784],{"className":167,"code":783,"language":169,"meta":170,"style":170},"import os\nimport json\nimport requests\n\n\nos.environ[\"MEMOS_API_KEY\"] = \"YOUR_API_KEY\"\nos.environ[\"MEMOS_BASE_URL\"] = \"https://api.memt.ai/openmem/v1\"\n\n# headers and base URL\nheaders = {\n  \"Authorization\": f\"Token {os.environ['MEMOS_API_KEY']}\",\n  \"Content-Type\": \"application/json\"\n}\nBASE_URL = os.environ['MEMOS_BASE_URL']\n\ndef add_message(user_id, conversation_id, messages):\n    data = {\n        \"user_id\": user_id,\n        \"conversation_id\": conversation_id,\n        \"messages\": messages\n    }\n    \n    res = requests.post(f\"{BASE_URL}/add/message\", headers=headers, data=json.dumps(data))\n    result = res.json()\n  \n    if result.get('code') == 0: \n      print(f\"✅ Added successfully\")\n    else:\n      print(f\"❌ Add failed, {result.get('message')}\")\n\n# Add Real-time User-Assistant Dialogue\nadd_message(\"memos_user_123\", \"memos_conversation_123\",\n            [{\"role\": \"user\", \"content\": \"I ran 5 kilometers this morning, and my knees are a bit sore\"}, \n             {\"role\": \"assistant\", \"content\": \"You ran 5 kilometers today and your knees are a bit sore, which means your joints and muscles are still adapting to the intensity. It is recommended to control the distance to about 3 kilometers tomorrow, focusing on full warm-up and relaxation. This can maintain the training rhythm while giving the knees time to recover.\"}])\n\n",[154,785,786,792,798,804,808,812,838,864,868,873,881,919,935,939,964,968,993,1002,1018,1032,1045,1050,1055,1110,1127,1132,1167,1181,1190,1228,1233,1239,1264,1306],{"__ignoreMap":170},[174,787,788,790],{"class":176,"line":177},[174,789,181],{"class":180},[174,791,185],{"class":184},[174,793,794,796],{"class":176,"line":188},[174,795,181],{"class":180},[174,797,201],{"class":184},[174,799,800,802],{"class":176,"line":196},[174,801,181],{"class":180},[174,803,193],{"class":184},[174,805,806],{"class":176,"line":204},[174,807,208],{"emptyLinePlaceholder":207},[174,809,810],{"class":176,"line":211},[174,811,208],{"emptyLinePlaceholder":207},[174,813,814,816,818,820,822,824,826,828,830,832,834,836],{"class":176,"line":218},[174,815,221],{"class":184},[174,817,225],{"class":224},[174,819,229],{"class":228},[174,821,232],{"class":224},[174,823,235],{"class":224},[174,825,239],{"class":238},[174,827,235],{"class":224},[174,829,244],{"class":224},[174,831,247],{"class":224},[174,833,250],{"class":224},[174,835,253],{"class":238},[174,837,256],{"class":224},[174,839,840,842,844,846,848,850,852,854,856,858,860,862],{"class":176,"line":259},[174,841,221],{"class":184},[174,843,225],{"class":224},[174,845,229],{"class":228},[174,847,232],{"class":224},[174,849,235],{"class":224},[174,851,272],{"class":238},[174,853,235],{"class":224},[174,855,244],{"class":224},[174,857,247],{"class":224},[174,859,250],{"class":224},[174,861,283],{"class":238},[174,863,256],{"class":224},[174,865,866],{"class":176,"line":288},[174,867,208],{"emptyLinePlaceholder":207},[174,869,870],{"class":176,"line":293},[174,871,872],{"class":214},"# headers and base URL\n",[174,874,875,877,879],{"class":176,"line":305},[174,876,540],{"class":184},[174,878,299],{"class":224},[174,880,302],{"class":224},[174,882,883,885,887,889,891,893,895,897,899,901,903,905,907,909,911,913,915,917],{"class":176,"line":329},[174,884,550],{"class":224},[174,886,574],{"class":238},[174,888,235],{"class":224},[174,890,316],{"class":224},[174,892,582],{"class":581},[174,894,585],{"class":238},[174,896,589],{"class":588},[174,898,221],{"class":184},[174,900,225],{"class":224},[174,902,229],{"class":228},[174,904,232],{"class":224},[174,906,600],{"class":224},[174,908,239],{"class":238},[174,910,600],{"class":224},[174,912,244],{"class":224},[174,914,609],{"class":588},[174,916,235],{"class":238},[174,918,326],{"class":224},[174,920,921,923,925,927,929,931,933],{"class":176,"line":350},[174,922,550],{"class":224},[174,924,553],{"class":238},[174,926,235],{"class":224},[174,928,316],{"class":224},[174,930,250],{"class":224},[174,932,562],{"class":238},[174,934,256],{"class":224},[174,936,937],{"class":176,"line":365},[174,938,522],{"class":224},[174,940,941,944,946,949,951,953,955,957,959,961],{"class":176,"line":409},[174,942,943],{"class":184},"BASE_URL ",[174,945,299],{"class":224},[174,947,948],{"class":184}," os",[174,950,225],{"class":224},[174,952,229],{"class":228},[174,954,232],{"class":224},[174,956,600],{"class":224},[174,958,272],{"class":238},[174,960,600],{"class":224},[174,962,963],{"class":224},"]\n",[174,965,966],{"class":176,"line":448},[174,967,208],{"emptyLinePlaceholder":207},[174,969,970,973,976,978,980,982,985,987,990],{"class":176,"line":486},[174,971,972],{"class":581},"def",[174,974,975],{"class":672}," add_message",[174,977,676],{"class":224},[174,979,311],{"class":679},[174,981,387],{"class":224},[174,983,984],{"class":679}," conversation_id",[174,986,387],{"class":224},[174,988,989],{"class":679}," messages",[174,991,992],{"class":224},"):\n",[174,994,995,998,1000],{"class":176,"line":525},[174,996,997],{"class":184},"    data ",[174,999,299],{"class":224},[174,1001,302],{"class":224},[174,1003,1004,1007,1009,1011,1013,1016],{"class":176,"line":531},[174,1005,1006],{"class":224},"        \"",[174,1008,311],{"class":238},[174,1010,235],{"class":224},[174,1012,316],{"class":224},[174,1014,1015],{"class":184}," user_id",[174,1017,326],{"class":224},[174,1019,1020,1022,1024,1026,1028,1030],{"class":176,"line":537},[174,1021,1006],{"class":224},[174,1023,334],{"class":238},[174,1025,235],{"class":224},[174,1027,316],{"class":224},[174,1029,984],{"class":184},[174,1031,326],{"class":224},[174,1033,1034,1036,1038,1040,1042],{"class":176,"line":547},[174,1035,1006],{"class":224},[174,1037,355],{"class":238},[174,1039,235],{"class":224},[174,1041,316],{"class":224},[174,1043,1044],{"class":184}," messages\n",[174,1046,1047],{"class":176,"line":569},[174,1048,1049],{"class":224},"    }\n",[174,1051,1052],{"class":176,"line":614},[174,1053,1054],{"class":184},"    \n",[174,1056,1057,1060,1062,1064,1066,1068,1070,1072,1074,1076,1079,1081,1084,1086,1088,1090,1092,1094,1096,1098,1100,1102,1104,1106,1108],{"class":176,"line":619},[174,1058,1059],{"class":184},"    res ",[174,1061,299],{"class":224},[174,1063,667],{"class":184},[174,1065,225],{"class":224},[174,1067,673],{"class":672},[174,1069,676],{"class":224},[174,1071,733],{"class":581},[174,1073,235],{"class":238},[174,1075,589],{"class":588},[174,1077,1078],{"class":672},"BASE_URL",[174,1080,609],{"class":588},[174,1082,1083],{"class":238},"/add/message\"",[174,1085,387],{"class":224},[174,1087,689],{"class":679},[174,1089,299],{"class":224},[174,1091,694],{"class":672},[174,1093,387],{"class":224},[174,1095,699],{"class":679},[174,1097,299],{"class":224},[174,1099,704],{"class":672},[174,1101,225],{"class":224},[174,1103,709],{"class":672},[174,1105,676],{"class":224},[174,1107,714],{"class":672},[174,1109,717],{"class":224},[174,1111,1112,1115,1117,1120,1122,1124],{"class":176,"line":654},[174,1113,1114],{"class":184},"    result ",[174,1116,299],{"class":224},[174,1118,1119],{"class":184}," res",[174,1121,225],{"class":224},[174,1123,704],{"class":672},[174,1125,1126],{"class":224},"()\n",[174,1128,1129],{"class":176,"line":659},[174,1130,1131],{"class":184},"  \n",[174,1133,1134,1137,1140,1142,1145,1147,1149,1151,1153,1156,1159,1162,1164],{"class":176,"line":720},[174,1135,1136],{"class":180},"    if",[174,1138,1139],{"class":184}," result",[174,1141,225],{"class":224},[174,1143,1144],{"class":672},"get",[174,1146,676],{"class":224},[174,1148,600],{"class":224},[174,1150,154],{"class":238},[174,1152,600],{"class":224},[174,1154,1155],{"class":224},")",[174,1157,1158],{"class":224}," ==",[174,1160,1161],{"class":588}," 0",[174,1163,316],{"class":224},[174,1165,1166],{"class":184}," \n",[174,1168,1169,1172,1174,1176,1179],{"class":176,"line":725},[174,1170,1171],{"class":672},"      print",[174,1173,676],{"class":224},[174,1175,733],{"class":581},[174,1177,1178],{"class":238},"\"✅ Added successfully\"",[174,1180,755],{"class":224},[174,1182,1184,1187],{"class":176,"line":1183},28,[174,1185,1186],{"class":180},"    else",[174,1188,1189],{"class":224},":\n",[174,1191,1193,1195,1197,1199,1202,1204,1207,1209,1211,1213,1215,1218,1220,1222,1224,1226],{"class":176,"line":1192},29,[174,1194,1171],{"class":672},[174,1196,676],{"class":224},[174,1198,733],{"class":581},[174,1200,1201],{"class":238},"\"❌ Add failed, ",[174,1203,589],{"class":588},[174,1205,1206],{"class":672},"result",[174,1208,225],{"class":224},[174,1210,1144],{"class":672},[174,1212,676],{"class":224},[174,1214,600],{"class":224},[174,1216,1217],{"class":238},"message",[174,1219,600],{"class":224},[174,1221,1155],{"class":224},[174,1223,609],{"class":588},[174,1225,235],{"class":238},[174,1227,755],{"class":224},[174,1229,1231],{"class":176,"line":1230},30,[174,1232,208],{"emptyLinePlaceholder":207},[174,1234,1236],{"class":176,"line":1235},31,[174,1237,1238],{"class":214},"# Add Real-time User-Assistant Dialogue\n",[174,1240,1242,1245,1247,1249,1251,1253,1255,1257,1260,1262],{"class":176,"line":1241},32,[174,1243,1244],{"class":672},"add_message",[174,1246,676],{"class":224},[174,1248,235],{"class":224},[174,1250,321],{"class":238},[174,1252,235],{"class":224},[174,1254,387],{"class":224},[174,1256,250],{"class":224},[174,1258,1259],{"class":238},"memos_conversation_123",[174,1261,235],{"class":224},[174,1263,326],{"class":224},[174,1265,1267,1270,1272,1274,1276,1278,1280,1282,1284,1286,1288,1290,1292,1294,1296,1299,1301,1304],{"class":176,"line":1266},33,[174,1268,1269],{"class":224},"            [{",[174,1271,235],{"class":224},[174,1273,373],{"class":238},[174,1275,235],{"class":224},[174,1277,316],{"class":224},[174,1279,250],{"class":224},[174,1281,382],{"class":238},[174,1283,235],{"class":224},[174,1285,387],{"class":224},[174,1287,250],{"class":224},[174,1289,392],{"class":238},[174,1291,235],{"class":224},[174,1293,316],{"class":224},[174,1295,250],{"class":224},[174,1297,1298],{"class":238},"I ran 5 kilometers this morning, and my knees are a bit sore",[174,1300,235],{"class":224},[174,1302,1303],{"class":224},"},",[174,1305,1166],{"class":672},[174,1307,1309,1312,1314,1316,1318,1320,1322,1324,1326,1328,1330,1332,1334,1336,1338,1341,1343],{"class":176,"line":1308},34,[174,1310,1311],{"class":224},"             {",[174,1313,235],{"class":224},[174,1315,373],{"class":238},[174,1317,235],{"class":224},[174,1319,316],{"class":224},[174,1321,250],{"class":224},[174,1323,424],{"class":238},[174,1325,235],{"class":224},[174,1327,387],{"class":224},[174,1329,250],{"class":224},[174,1331,392],{"class":238},[174,1333,235],{"class":224},[174,1335,316],{"class":224},[174,1337,250],{"class":224},[174,1339,1340],{"class":238},"You ran 5 kilometers today and your knees are a bit sore, which means your joints and muscles are still adapting to the intensity. It is recommended to control the distance to about 3 kilometers tomorrow, focusing on full warm-up and relaxation. This can maintain the training rhythm while giving the knees time to recover.",[174,1342,235],{"class":224},[174,1344,1345],{"class":224},"}])\n",[25,1347],{},[774,1349,1351],{"id":1350},"_52-import-historical-conversations","5.2 Import Historical Conversations",[14,1353,1354],{},"If you have already built an AI conversation application, MemOS also supports batch importing existing chat records to help the conversation assistant remember users and reply more personally.",[165,1356,1358],{"className":167,"code":1357,"language":169,"meta":170,"style":170},"# Example historical conversation data\n\"messages\": [\n  # Conversation between user and AI on the first day\n    {\"role\": \"user\", \"content\": \"I like spicy food\", \"chat_time\": \"2025-09-12 08:00:00\"},\n    {\"role\": \"assistant\", \"content\": \"Got it, I remember, you like spicy food.\", \"chat_time\": \"2025-09-12 08:01:00\"},\n  # Conversation between user and AI a few days later\n    {\"role\": \"user\", \"content\": \"But I don't really like heavy oil, such as spicy hot pot, Mao Xue Wang, etc.\", \"chat_time\": \"2025-09-25 12:00:00\"},\n    {\"role\": \"assistant\", \"content\": \"You prefer refreshing and spicy dishes. I can help you recommend some spicy food that suits you~\", \"chat_time\": \"2025-09-25 12:01:00\"}\n]\n",[154,1359,1360,1365,1377,1382,1438,1492,1497,1551,1605],{"__ignoreMap":170},[174,1361,1362],{"class":176,"line":177},[174,1363,1364],{"class":214},"# Example historical conversation data\n",[174,1366,1367,1369,1371,1373,1375],{"class":176,"line":188},[174,1368,235],{"class":180},[174,1370,355],{"class":214},[174,1372,235],{"class":180},[174,1374,316],{"class":224},[174,1376,362],{"class":224},[174,1378,1379],{"class":176,"line":196},[174,1380,1381],{"class":214},"  # Conversation between user and AI on the first day\n",[174,1383,1384,1387,1389,1391,1393,1395,1397,1399,1401,1403,1405,1407,1409,1411,1413,1416,1418,1420,1422,1425,1427,1429,1431,1434,1436],{"class":176,"line":204},[174,1385,1386],{"class":224},"    {",[174,1388,235],{"class":224},[174,1390,373],{"class":238},[174,1392,235],{"class":224},[174,1394,316],{"class":224},[174,1396,250],{"class":224},[174,1398,382],{"class":238},[174,1400,235],{"class":224},[174,1402,387],{"class":224},[174,1404,250],{"class":224},[174,1406,392],{"class":238},[174,1408,235],{"class":224},[174,1410,316],{"class":224},[174,1412,250],{"class":224},[174,1414,1415],{"class":238},"I like spicy food",[174,1417,235],{"class":224},[174,1419,387],{"class":224},[174,1421,250],{"class":224},[174,1423,1424],{"class":238},"chat_time",[174,1426,235],{"class":224},[174,1428,316],{"class":224},[174,1430,250],{"class":224},[174,1432,1433],{"class":238},"2025-09-12 08:00:00",[174,1435,235],{"class":224},[174,1437,406],{"class":224},[174,1439,1440,1442,1444,1446,1448,1450,1452,1454,1456,1458,1460,1462,1464,1466,1468,1471,1473,1475,1477,1479,1481,1483,1485,1488,1490],{"class":176,"line":211},[174,1441,1386],{"class":224},[174,1443,235],{"class":224},[174,1445,373],{"class":238},[174,1447,235],{"class":224},[174,1449,316],{"class":224},[174,1451,250],{"class":224},[174,1453,424],{"class":238},[174,1455,235],{"class":224},[174,1457,387],{"class":224},[174,1459,250],{"class":224},[174,1461,392],{"class":238},[174,1463,235],{"class":224},[174,1465,316],{"class":224},[174,1467,250],{"class":224},[174,1469,1470],{"class":238},"Got it, I remember, you like spicy food.",[174,1472,235],{"class":224},[174,1474,387],{"class":224},[174,1476,250],{"class":224},[174,1478,1424],{"class":238},[174,1480,235],{"class":224},[174,1482,316],{"class":224},[174,1484,250],{"class":224},[174,1486,1487],{"class":238},"2025-09-12 08:01:00",[174,1489,235],{"class":224},[174,1491,406],{"class":224},[174,1493,1494],{"class":176,"line":218},[174,1495,1496],{"class":214},"  # Conversation between user and AI a few days later\n",[174,1498,1499,1501,1503,1505,1507,1509,1511,1513,1515,1517,1519,1521,1523,1525,1527,1530,1532,1534,1536,1538,1540,1542,1544,1547,1549],{"class":176,"line":259},[174,1500,1386],{"class":224},[174,1502,235],{"class":224},[174,1504,373],{"class":238},[174,1506,235],{"class":224},[174,1508,316],{"class":224},[174,1510,250],{"class":224},[174,1512,382],{"class":238},[174,1514,235],{"class":224},[174,1516,387],{"class":224},[174,1518,250],{"class":224},[174,1520,392],{"class":238},[174,1522,235],{"class":224},[174,1524,316],{"class":224},[174,1526,250],{"class":224},[174,1528,1529],{"class":238},"But I don't really like heavy oil, such as spicy hot pot, Mao Xue Wang, etc.",[174,1531,235],{"class":224},[174,1533,387],{"class":224},[174,1535,250],{"class":224},[174,1537,1424],{"class":238},[174,1539,235],{"class":224},[174,1541,316],{"class":224},[174,1543,250],{"class":224},[174,1545,1546],{"class":238},"2025-09-25 12:00:00",[174,1548,235],{"class":224},[174,1550,406],{"class":224},[174,1552,1553,1555,1557,1559,1561,1563,1565,1567,1569,1571,1573,1575,1577,1579,1581,1584,1586,1588,1590,1592,1594,1596,1598,1601,1603],{"class":176,"line":288},[174,1554,1386],{"class":224},[174,1556,235],{"class":224},[174,1558,373],{"class":238},[174,1560,235],{"class":224},[174,1562,316],{"class":224},[174,1564,250],{"class":224},[174,1566,424],{"class":238},[174,1568,235],{"class":224},[174,1570,387],{"class":224},[174,1572,250],{"class":224},[174,1574,392],{"class":238},[174,1576,235],{"class":224},[174,1578,316],{"class":224},[174,1580,250],{"class":224},[174,1582,1583],{"class":238},"You prefer refreshing and spicy dishes. I can help you recommend some spicy food that suits you~",[174,1585,235],{"class":224},[174,1587,387],{"class":224},[174,1589,250],{"class":224},[174,1591,1424],{"class":238},[174,1593,235],{"class":224},[174,1595,316],{"class":224},[174,1597,250],{"class":224},[174,1599,1600],{"class":238},"2025-09-25 12:01:00",[174,1602,235],{"class":224},[174,1604,522],{"class":224},[174,1606,1607],{"class":176,"line":293},[174,1608,963],{"class":224},[25,1610],{},[774,1612,1614],{"id":1613},"_53-record-user-preferences-or-behaviors","5.3 Record User Preferences or Behaviors",[14,1616,1617],{},"In addition to importing conversation content, user personal preferences, behaviors, and other data, such as interest questionnaire information filled in when starting the application for the first time, can also be imported into MemOS as part of memory.",[165,1619,1621],{"className":167,"code":1620,"language":169,"meta":170,"style":170},"# Example user interest information\n\"messages\": [\n    {\n      \"role\": \"user\",\n      \"content\": \"\"\"\nFavorite movie genres: Sci-Fi, Action, Comedy\nFavorite TV series genres: Suspense, Historical Drama\nFavorite book types: Popular Science, Technology, Self-growth\nPreferred learning methods: Articles, Videos, Podcasts\nExercise habits: Running, Fitness\nDietary preferences: Prefer spicy, Healthy diet\nTravel preferences: Natural landscapes, Urban culture, Adventure\nPreferred chat style: Humorous, Warm, Casual chat\nTypes of help desired from AI: Suggestions, Information query, Inspiration\nTopics I am most interested in: Artificial Intelligence, Future Technology, Movie Reviews\nThings I hope AI can help with: Planning daily study schedules, Recommending movies and books, Providing emotional companionship\n      \"\"\"\n    }\n]\n",[154,1622,1623,1628,1640,1645,1664,1677,1682,1687,1692,1697,1702,1707,1712,1717,1722,1727,1732,1737,1741],{"__ignoreMap":170},[174,1624,1625],{"class":176,"line":177},[174,1626,1627],{"class":214},"# Example user interest information\n",[174,1629,1630,1632,1634,1636,1638],{"class":176,"line":188},[174,1631,235],{"class":180},[174,1633,355],{"class":214},[174,1635,235],{"class":180},[174,1637,316],{"class":224},[174,1639,362],{"class":224},[174,1641,1642],{"class":176,"line":196},[174,1643,1644],{"class":224},"    {\n",[174,1646,1647,1650,1652,1654,1656,1658,1660,1662],{"class":176,"line":204},[174,1648,1649],{"class":224},"      \"",[174,1651,373],{"class":238},[174,1653,235],{"class":224},[174,1655,316],{"class":224},[174,1657,250],{"class":224},[174,1659,382],{"class":238},[174,1661,235],{"class":224},[174,1663,326],{"class":224},[174,1665,1666,1668,1670,1672,1674],{"class":176,"line":211},[174,1667,1649],{"class":224},[174,1669,392],{"class":238},[174,1671,235],{"class":224},[174,1673,316],{"class":224},[174,1675,1676],{"class":224}," \"\"\"\n",[174,1678,1679],{"class":176,"line":218},[174,1680,1681],{"class":238},"Favorite movie genres: Sci-Fi, Action, Comedy\n",[174,1683,1684],{"class":176,"line":259},[174,1685,1686],{"class":238},"Favorite TV series genres: Suspense, Historical Drama\n",[174,1688,1689],{"class":176,"line":288},[174,1690,1691],{"class":238},"Favorite book types: Popular Science, Technology, Self-growth\n",[174,1693,1694],{"class":176,"line":293},[174,1695,1696],{"class":238},"Preferred learning methods: Articles, Videos, Podcasts\n",[174,1698,1699],{"class":176,"line":305},[174,1700,1701],{"class":238},"Exercise habits: Running, Fitness\n",[174,1703,1704],{"class":176,"line":329},[174,1705,1706],{"class":238},"Dietary preferences: Prefer spicy, Healthy diet\n",[174,1708,1709],{"class":176,"line":350},[174,1710,1711],{"class":238},"Travel preferences: Natural landscapes, Urban culture, Adventure\n",[174,1713,1714],{"class":176,"line":365},[174,1715,1716],{"class":238},"Preferred chat style: Humorous, Warm, Casual chat\n",[174,1718,1719],{"class":176,"line":409},[174,1720,1721],{"class":238},"Types of help desired from AI: Suggestions, Information query, Inspiration\n",[174,1723,1724],{"class":176,"line":448},[174,1725,1726],{"class":238},"Topics I am most interested in: Artificial Intelligence, Future Technology, Movie Reviews\n",[174,1728,1729],{"class":176,"line":486},[174,1730,1731],{"class":238},"Things I hope AI can help with: Planning daily study schedules, Recommending movies and books, Providing emotional companionship\n",[174,1733,1734],{"class":176,"line":525},[174,1735,1736],{"class":224},"      \"\"\"\n",[174,1738,1739],{"class":176,"line":531},[174,1740,1049],{"class":224},[174,1742,1743],{"class":176,"line":537},[174,1744,963],{"class":224},[25,1746],{},[37,1748,1750],{"id":1749},"_6-more-features","6. More Features",[67,1752,1753],{},[14,1754,1755,1756,225],{},"For a complete list of API fields, formats, etc., please see ",[20,1757,1758],{"href":22},"Add Message API Docs",[1760,1761,1762,1784],"table",{},[1763,1764,1765],"thead",{},[1766,1767,1768,1774,1779],"tr",{},[1769,1770,1771],"th",{},[17,1772,1773],{},"Feature",[1769,1775,1776],{},[17,1777,1778],{},"Field",[1769,1780,1781],{},[17,1782,1783],{},"Description",[1785,1786,1787,1805,1840,1856,1872,1928,1941],"tbody",{},[1766,1788,1789,1793,1802],{},[1790,1791,1792],"td",{},"Associate more entities",[1790,1794,1795,1798,1799],{},[154,1796,1797],{},"agent_id"," ",[154,1800,1801],{},"app_id",[1790,1803,1804],{},"Unique identifiers for associating the current user's conversation messages with entities such as Agents and applications, facilitating subsequent memory retrieval by entity dimension.",[1766,1806,1807,1810,1814],{},[1790,1808,1809],{},"Messages",[1790,1811,1812],{},[154,1813,355],{},[1790,1815,1816,1817,1819,1820,1822,1823,1825,1826,1828,1829,225,1833,1835,1836,225],{},"List of conversation messages to be added.",[25,1818],{},"Supported role types include: user / assistant / system / tool;",[25,1821],{},"Supported message types include:",[25,1824],{},"• Text",[25,1827],{},"• Documents, images, see ",[20,1830,1832],{"href":1831},"/memos_cloud/features/basic/multimodal","Multimodal Messages",[25,1834],{},"• Tool calling information, see ",[20,1837,1839],{"href":1838},"/memos_cloud/features/advanced/tool_calling","Tool Calling",[1766,1841,1842,1845,1850],{},[1790,1843,1844],{},"Async Mode",[1790,1846,1847],{},[154,1848,1849],{},"async_mode",[1790,1851,1852,1853,225],{},"Controls the processing method after adding messages, supporting both asynchronous and synchronous modes. See ",[20,1854,1844],{"href":1855},"/memos_cloud/features/basic/async_mode",[1766,1857,1858,1861,1866],{},[1790,1859,1860],{},"Custom Tags",[1790,1862,1863],{},[154,1864,1865],{},"tags",[1790,1867,1868,1869,225],{},"Add custom tags to the current user's conversation messages for subsequent memory retrieval and filtering, such as \"graph retrieval\" during retrieval and other internal reasoning node retrieval. See ",[20,1870,1860],{"href":1871},"/memos_cloud/features/basic/custom_tags",[1766,1873,1874,1877,1882],{},[1790,1875,1876],{},"Meta Info",[1790,1878,1879],{},[154,1880,1881],{},"info",[1790,1883,1884,1885,1887,1889,1891,1892,1894,1896,1897,1899,1900,1903,1899,1905,1908,1899,1910,1913,1899,1915,1918,1920,1922,1923,1925,1927],{},"Custom meta information field used to supplement the current user's conversation messages and used as a filtering condition in subsequent memory retrieval.",[25,1886],{},[25,1888],{},[154,1890,1881],{}," supports passing arbitrary custom key-value pairs, and all fields can be stored and retrieved normally.",[25,1893],{},[25,1895],{},"The current system provides better query performance support for the following fields (because these fields are already indexed):",[25,1898],{},"• ",[154,1901,1902],{},"business_type",[25,1904],{},[154,1906,1907],{},"biz_id",[25,1909],{},[154,1911,1912],{},"scene",[25,1914],{},[154,1916,1917],{},"custom_status",[25,1919],{},[25,1921],{},"Using the above fields is not mandatory. Using other custom fields is completely consistent functionally, and may only differ in retrieval performance.",[25,1924],{},[25,1926],{},"Note that info is a flattened key-value pair structure, and both field names and field values must be of string type for conditional filtering during retrieval; non-string values need to be converted to strings before passing.",[1766,1929,1930,1933,1938],{},[1790,1931,1932],{},"Write to Public Memory",[1790,1934,1935],{},[154,1936,1937],{},"allow_public",[1790,1939,1940],{},"Controls whether the memory generated by the current user's conversation message should be written to the project-level public memory for sharing among all users under the project. Default is closed.",[1766,1942,1943,1946,1951],{},[1790,1944,1945],{},"Write to Knowledge Base Memory",[1790,1947,1948],{},[154,1949,1950],{},"allow_knowledgebase_ids",[1790,1952,1953,1954,225],{},"Controls whether the memory generated by the current user's conversation message is written to the specified knowledge base associated with the project for sharing among all users who can access the knowledge base. Default is empty. When used, you can pass in the list of knowledge bases to be written to. See ",[20,1955,1957],{"href":1956},"/memos_cloud/features/advanced/knowledge_base","Knowledge Base",[1959,1960,1961],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":170,"searchDepth":188,"depth":188,"links":1963},[1964,1965,1966,1967,1968,1973],{"id":39,"depth":188,"text":40},{"id":96,"depth":188,"text":97},{"id":128,"depth":188,"text":129},{"id":162,"depth":188,"text":163},{"id":771,"depth":188,"text":772,"children":1969},[1970,1971,1972],{"id":776,"depth":196,"text":777},{"id":1350,"depth":196,"text":1351},{"id":1613,"depth":196,"text":1614},{"id":1749,"depth":188,"text":1750},"MemOS automatically processes multimodal content you add, such as text, files, and images, into retrievable personal memories.","md",{},"/en/memos_cloud/mem_operations/add_message",{"title":5,"description":170},"en/memos_cloud/mem_operations/add_message","J8-vsdXmS5XhQls35B8xmHSvsU6yVQeaJ8IO8FLHt_Y",[1982,1990],{"title":1983,"path":1984,"stem":1985,"icon":1986,"framework":6,"module":6,"class":1987,"target":-1,"active":1988,"defaultOpen":1988,"children":-1,"description":1989},"FAQs","/memos_cloud/faq","memos_cloud/faq","i-ri-question-line",[],false,"We have compiled the most common questions about using MemOS. No need to search around; you can quickly find the answers here.",{"title":766,"path":763,"stem":1991,"icon":1992,"framework":6,"module":6,"class":1993,"target":-1,"active":1988,"defaultOpen":1988,"children":-1,"description":1994},"memos_cloud/mem_operations/search_memory","i-ri-search-2-line",[],"MemOS recalls relevant memories through semantic retrieval and filtering functions.",1770372081560]