AIsuru Docs
AIsuru
AIsuru
  • 0. Introduzione ad AIsuru
    • Cos'è AIsuru
    • Per chi è AIsuru?
    • Panoramica delle funzionalità principali
    • Che differenza c'è con ChatGPT?
    • Requisiti di sistema
  • 1. Primi passi
    • Creazione di un account
    • Navigazione dell'interfaccia utente
    • Creazione del primo Agente
      • Come creare un Agente
      • Importazione rapida di un documento
      • Condivisione
    • Video riassuntivo
    • Gestione account
  • 2. Istruzione dell'Agente e gestione dei contenuti
    • Come istruire un Agente: panoramica dei metodi
    • Istruiscimi: insegna nuove informazioni all'Agente chiacchierando
    • Contenuti
      • Cosa sono i contenuti e perché sono importanti
      • Creazione manuale dei contenuti
      • Validazione e correzione dei contenuti
      • Modifica e aggiornamento dei contenuti
    • Importazione di documenti
      • Come funziona l'importazione di documenti
      • Importare documenti testuali
      • Gestione delle immagini nei documenti
    • Dizionario
    • Istruzione: sezione avanzata
      • Personalizzazione dei contenuti
        • Come attribuire contenuti a persone o ruoli specifici
        • Personalizzare le risposte in base a data e luogo dell'utente
        • Gestione dei suggerimenti
        • Contesto: argomenti ed etichette
        • Gestione dei testi preformattati (snippet di codice)
        • Utilizzo del timeout
      • Importazione avanzata di documenti
        • Creare una gerarchia dei documenti
        • Importare un documento non supportato
      • Messaggio di benvenuto
      • Risposte predefinite
      • Formattazione dei messaggi: HTML e formule matematiche
      • Metodi avanzati di istruzione
  • 3. Modelli linguistici e IA generativa
    • Attiva l'IA generativa e cambia il modello
    • Istruzioni IA
      • Istruzioni IA: cosa sono e come modificarle
      • Come scrivere istruzioni efficaci
      • Esempi di istruzioni efficaci
    • Provider e modelli di IA generativa
    • IA generativa: sezione avanzata
      • Altre impostazioni dell'IA generativa
      • Crea e gestisci le configurazioni dei modelli
      • Cosa fare in caso di problemi
  • 4. Condivisione e pubblicazione
    • Crea e gestisci i layout di condivisione
    • Codice di embed
    • Condividi i tuoi Agenti
      • Condividi un link al tuo Agente
      • Incorpora l'Agente sul tuo sito web
      • Scarica una pagina HTML con il tuo Agente
      • Integra l'Agente con il tuo blog WordPress
      • Inserisci l'Agente all'interno di totem e dispositivi fisici
      • Aggiungi l'Agente al tuo spazio virtuale (VR e AR)
      • Integrazione con WhatsApp Business
    • Visibilità in homepage
    • Condivisione: sezione avanzata
      • Domanda iniziale
      • Personalizzazione avanzata dell'interfaccia utente
      • Analisi del codice di embed
      • Modificare il nome dell'Agente
  • 5. Funzionalità avanzate
    • Backup dell'Agente
    • Trasferimento e cancellazione dell'Agente
    • Integrazioni
      • Funzioni
        • Cosa sono le funzioni
        • Funzioni di AIsuru
        • Funzioni avanzate
          • Come configurare una funzione personalizzata
          • Funzioni avanzate: best practice e casi d'uso
            • Caso d'uso - Aggiornamento automatico: il tuo Agente sempre connesso al web
            • Caso d'uso - Prendere dati live da un servizio esterno
          • Problemi comuni con le funzioni avanzate
          • Cache delle funzioni
      • Intenti dinamici
        • Cosa sono e come configurare gli intenti dinamici
        • Come usare gli slot
        • Tunneling: esempio di una live chat su AIsuru
      • Intenti dinamici o funzioni, cosa usare?
      • Copia gli intenti dinamici, gli slot e le funzioni da un altro Agente
    • Gestione degli utenti
      • Differenza tra autori e persone
      • Invito e gestione degli autori
      • Creazione e gestione delle persone
    • Fine-tuning
      • Cos'è il fine-tuning e a cosa serve
      • Come fare fine-tuning in maniera semplice con AIsuru
      • Come sfruttare modelli fine-tuned su AIsuru
    • Interfacce web: come creare esperienze interattive
  • 6. Consumi e Analytics
    • Consumi
      • Come funzionano i consumi?
      • Monitora i tuoi consumi
      • Come ricaricare i crediti
    • Analisi e ottimizzazione dell'Agente
      • Statistiche
      • Storico delle conversazioni
      • Velocità di risposta
      • Preferenze notifiche
  • 7. Estensioni
    • Gruppo di esperti
      • Cosa sono i gruppi di esperti
      • Creare un gruppo di esperti
      • Come aggiungere Agenti al gruppo e descriverli
      • Come sfruttare i contenuti nel gruppo di esperti
      • Gruppo di esperti: best practice e casi d'uso
    • Pensiero Profondo
      • Cosa è Pensiero Profondo
      • Attivazione e configurazione
      • Gestione delle memorie
      • Best practices e casi d'uso
      • Analytics
        • Ricerca interessi degli utenti
        • Ricerca di segmenti di pubblico in linguaggio naturale
    • Spazi Virtuali (VR e MR)
      • Cosa è uno spazio virtuale
      • Creazione di uno spazio virtuale
      • Aggiungere Agenti agli spazi virtuali
      • Aggiungere oggetti agli spazi virtuali
      • Entrare in uno spazio virtuale
      • Casi d'uso
    • Open Badge
  • 8. Platform as a Service (PaaS)
    • Vantaggi della PaaS
    • Come attivare e configurare la PaaS
    • Come collegare la PaaS al tuo dominio
    • Gestione degli utenti nella PaaS
    • Come controllare i consumi della piattaforma
    • Personalizzazione dell'ambiente PaaS
    • Sicurezza e privacy
    • Supporto e manutenzione
  • 9. Documentazione Frontend
    • ⚛️ Componente React
    • 🌐 Web Component
    • 🎨 Stile e Personalizzazione
    • 🔌 Client API
  • 10. Risorse aggiuntive
    • Glossario dei termini
    • Link utili e supporto
    • API Engine
      • ChatLogs
      • ContextVars
      • CorrelationPairs
      • CustomDictionary
      • Dialog
      • EventLogs
      • ExpertReferences
      • Functions
      • Intents
      • LocalizationKeys
      • Media
      • Memories
      • NLP
      • People
      • Search
      • Session
      • Stats
      • Topics
      • UnansweredQuestions
      • User
      • WebHooks
      • Models
Powered by GitBook
On this page
  1. 10. Risorse aggiuntive
  2. API Engine

Memories

PreviousMediaNextNLP

Lists all Memory objects.

get

This API requires a Giver session.

Path parameters
strSessionIDstringRequired

The session ID

typestringOptional

Optional type of the Memory objects to list: ALL, CONTENTS, DEFAULTS, DRAFTS, EXPERT_REFERENCES

Responses
200
Success
application/json
get
GET /memori/v2/Memories/{strSessionID}/{type} HTTP/1.1
Host: 
Accept: */*
200

Success

{
  "count": 1,
  "memories": [
    {
      "memoryID": "text",
      "memoryType": "text",
      "lastRead": "2025-06-06T13:11:59.849Z",
      "readOccurrences": 1,
      "receiverID": "text",
      "receiverTag": "text",
      "receiverName": "text",
      "media": [
        {
          "mediumID": "text",
          "url": "text",
          "content": "text",
          "mimeType": "text",
          "title": "text",
          "properties": {
            "ANY_ADDITIONAL_PROPERTY": "text"
          },
          "creationTimestamp": "2025-06-06T13:11:59.849Z",
          "creationSessionID": "text",
          "lastChangeTimestamp": "2025-06-06T13:11:59.849Z",
          "lastChangeSessionID": "text"
        }
      ],
      "title": "text",
      "titleVariants": [
        "text"
      ],
      "answers": [
        {
          "text": "text",
          "preformatted": true,
          "creationTimestamp": "2025-06-06T13:11:59.849Z",
          "creationSessionID": "text",
          "lastChangeTimestamp": "2025-06-06T13:11:59.849Z",
          "lastChangeSessionID": "text"
        }
      ],
      "date": "2025-06-06T13:11:59.849Z",
      "dateUncertaintyDays": 1,
      "placeName": "text",
      "placeLatitude": 1,
      "placeLongitude": 1,
      "placeUncertaintyKm": 1,
      "conclusive": true,
      "notPickable": true,
      "help": true,
      "hints": [
        "text"
      ],
      "minTimeout": 1,
      "maxTimeout": 1,
      "contextVarsToSet": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      },
      "contextVarsToMatch": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      },
      "dcmOutcomeType": "text",
      "dcmOutcomeCode": "text",
      "tags": [
        "text"
      ],
      "creationTimestamp": "2025-06-06T13:11:59.849Z",
      "creationSessionID": "text",
      "lastChangeTimestamp": "2025-06-06T13:11:59.849Z",
      "lastChangeSessionID": "text"
    }
  ],
  "requestID": 1,
  "requestDateTime": "2025-06-06T13:11:59.849Z",
  "resultCode": 1,
  "resultMessage": "text"
}

Lists Memory objects with pagination.

get

This API requires a Giver session.

Path parameters
strSessionIDstringRequired

The session ID

frominteger · int32Required

The 0-based index of the first Memory object to list

howManyinteger · int32Required

The number of the Memory objects to list

typestringOptional

Optional type of the Memory objects to list: ALL, CONTENTS, DEFAULTS, DRAFTS, EXPERT_REFERENCES

Responses
200
Success
application/json
get
GET /memori/v2/Memories/{strSessionID}/{from}/{howMany}/{type} HTTP/1.1
Host: 
Accept: */*
200

Success

{
  "count": 1,
  "memories": [
    {
      "memoryID": "text",
      "memoryType": "text",
      "lastRead": "2025-06-06T13:11:59.849Z",
      "readOccurrences": 1,
      "receiverID": "text",
      "receiverTag": "text",
      "receiverName": "text",
      "media": [
        {
          "mediumID": "text",
          "url": "text",
          "content": "text",
          "mimeType": "text",
          "title": "text",
          "properties": {
            "ANY_ADDITIONAL_PROPERTY": "text"
          },
          "creationTimestamp": "2025-06-06T13:11:59.849Z",
          "creationSessionID": "text",
          "lastChangeTimestamp": "2025-06-06T13:11:59.849Z",
          "lastChangeSessionID": "text"
        }
      ],
      "title": "text",
      "titleVariants": [
        "text"
      ],
      "answers": [
        {
          "text": "text",
          "preformatted": true,
          "creationTimestamp": "2025-06-06T13:11:59.849Z",
          "creationSessionID": "text",
          "lastChangeTimestamp": "2025-06-06T13:11:59.849Z",
          "lastChangeSessionID": "text"
        }
      ],
      "date": "2025-06-06T13:11:59.849Z",
      "dateUncertaintyDays": 1,
      "placeName": "text",
      "placeLatitude": 1,
      "placeLongitude": 1,
      "placeUncertaintyKm": 1,
      "conclusive": true,
      "notPickable": true,
      "help": true,
      "hints": [
        "text"
      ],
      "minTimeout": 1,
      "maxTimeout": 1,
      "contextVarsToSet": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      },
      "contextVarsToMatch": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      },
      "dcmOutcomeType": "text",
      "dcmOutcomeCode": "text",
      "tags": [
        "text"
      ],
      "creationTimestamp": "2025-06-06T13:11:59.849Z",
      "creationSessionID": "text",
      "lastChangeTimestamp": "2025-06-06T13:11:59.849Z",
      "lastChangeSessionID": "text"
    }
  ],
  "requestID": 1,
  "requestDateTime": "2025-06-06T13:11:59.849Z",
  "resultCode": 1,
  "resultMessage": "text"
}

Gets the details of a Memory object.

get

This API requires a Giver session.

Path parameters
strSessionIDstringRequired

The session ID

strMemoryIDstringRequired

The Memory object ID

Responses
200
Success
application/json
get
GET /memori/v2/Memory/{strSessionID}/{strMemoryID} HTTP/1.1
Host: 
Accept: */*
200

Success

{
  "memory": {
    "memoryID": "text",
    "memoryType": "text",
    "lastRead": "2025-06-06T13:11:59.849Z",
    "readOccurrences": 1,
    "receiverID": "text",
    "receiverTag": "text",
    "receiverName": "text",
    "media": [
      {
        "mediumID": "text",
        "url": "text",
        "content": "text",
        "mimeType": "text",
        "title": "text",
        "properties": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        },
        "creationTimestamp": "2025-06-06T13:11:59.849Z",
        "creationSessionID": "text",
        "lastChangeTimestamp": "2025-06-06T13:11:59.849Z",
        "lastChangeSessionID": "text"
      }
    ],
    "title": "text",
    "titleVariants": [
      "text"
    ],
    "answers": [
      {
        "text": "text",
        "preformatted": true,
        "creationTimestamp": "2025-06-06T13:11:59.849Z",
        "creationSessionID": "text",
        "lastChangeTimestamp": "2025-06-06T13:11:59.849Z",
        "lastChangeSessionID": "text"
      }
    ],
    "date": "2025-06-06T13:11:59.849Z",
    "dateUncertaintyDays": 1,
    "placeName": "text",
    "placeLatitude": 1,
    "placeLongitude": 1,
    "placeUncertaintyKm": 1,
    "conclusive": true,
    "notPickable": true,
    "help": true,
    "hints": [
      "text"
    ],
    "minTimeout": 1,
    "maxTimeout": 1,
    "contextVarsToSet": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "contextVarsToMatch": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "dcmOutcomeType": "text",
    "dcmOutcomeCode": "text",
    "tags": [
      "text"
    ],
    "creationTimestamp": "2025-06-06T13:11:59.849Z",
    "creationSessionID": "text",
    "lastChangeTimestamp": "2025-06-06T13:11:59.849Z",
    "lastChangeSessionID": "text"
  },
  "requestID": 1,
  "requestDateTime": "2025-06-06T13:11:59.849Z",
  "resultCode": 1,
  "resultMessage": "text"
}

Removes an existing Memory object.

delete

This API requires a Giver session.

Path parameters
strSessionIDstringRequired

The session ID

strMemoryIDstringRequired

The Memory object ID

Responses
200
Success
application/json
delete
DELETE /memori/v2/Memory/{strSessionID}/{strMemoryID} HTTP/1.1
Host: 
Accept: */*
200

Success

{
  "requestID": 1,
  "requestDateTime": "2025-06-06T13:11:59.849Z",
  "resultCode": 1,
  "resultMessage": "text"
}

Checks if a Memory object is accessible from the specified session.

get
Path parameters
strSessionIDstringRequired

The session ID

strMemoryIDstringRequired

The Memory object ID

Responses
200
Success
application/json
get
GET /memori/v2/MemoryAccess/{strSessionID}/{strMemoryID} HTTP/1.1
Host: 
Accept: */*
200

Success

{
  "requestID": 1,
  "requestDateTime": "2025-06-06T13:11:59.849Z",
  "resultCode": 1,
  "resultMessage": "text"
}
  • GETLists all Memory objects.
  • GETLists Memory objects with pagination.
  • GETGets the details of a Memory object.
  • DELETERemoves an existing Memory object.
  • PATCHUpdates an existing Memory object.
  • POSTFilters Memory objects.
  • POSTFilters Memory objects, with pagination.
  • POSTAdds a new Memory object.
  • GETChecks if a Memory object is accessible from the specified session.

Updates an existing Memory object.

patch

This API requires a Giver session. Only non-null (present) fields are considered for update. Null or absent fields are left unaltered. Note that if Answers of Media are present, they replace the corresponding lists.

Path parameters
strSessionIDstringRequired

The session ID

strMemoryIDstringRequired

The Memory object ID

Body

Specifications for an Update Person request.

markAsReadboolean | nullableOptional

If True updates the LastRead property with the current date.

memoryIDstring | nullableOptional

Memory object ID.

memoryTypestring | nullableOptional

Memory type, e.g. Question, Story or Default. Required during Add operations. Currently possible values are: Question: this Memory is a question, hence its title is expected in interrogative form Story: this Memory is a story, hence its title is expected in affirmative form Default: this Memory is a default answer, hence its title is ignored (empty or null) CompletionDraft: this Memory is draft from a completion, obtained via a generative AI. ExpertReference: this Memory is the results of a question asked to a Board of Experts, and the answer is the name of the Expert that replied to the question.

lastReadstring · date-time | nullableOptional

Timestamp of the last time this Memory has been shown to a Receiver. This value is also used when picking random memories to avoid showing memories that have already been shown recently. Null if the Memory has not been shown yet.

readOccurrencesinteger · int32 | nullableOptional

Number of times this Memory has been shown to a Receiver. Null if the Memory has not been shown yet.

receiverIDstring | nullableOptional

ID of the Person object to whom this Memory belongs. Null if the Memory is public. When updating, set it to a single dash character (-) to remove a previously set association with a Person.

receiverTagstring | nullableOptional

Tag of the Person object to whom this Memory belongs. Null if the Memory is public.

receiverNamestring | nullableOptional

Name of the Person object to whom this Memory belongs. Null if the Memory is public.

titlestring | nullableOptional

Title of the Question or Story. Null if this Memory is a Default.

titleVariantsstring[] | nullableOptional

Title variants of this Question or Story. Empty if this Memory is a Default.

datestring · date-time | nullableOptional

Approximate date associated with this Memory. When updating, set it to midnight Jan. 1st 1 A.D. (01/01/01 00:00:00) to clear any previously set Date and DateUncertaintyDays.

dateUncertaintyDaysnumber · double | nullableOptional

Uncertainty in the date associated with this Memory, expressed in days.

placeNamestring | nullableOptional

Name of the place associated with this Memory. When updating, set it to a single dash character (-) to clear any previously set Place (by name or coordinates) and PlaceUncertaintyKm.

placeLatitudenumber · double | nullableOptional

Latitude of the place associated with this Memory.

placeLongitudenumber · double | nullableOptional

Longitude of the place associated with this Memory.

placeUncertaintyKmnumber · double | nullableOptional

Uncertainty of the place associated with this Memory, expressed in kilometers.

conclusiveboolean | nullableOptional

If True, when this Memory is emitted it is NOT followed by a continuation prompt, such as "Is there anything else you want to know?".

notPickableboolean | nullableOptional

If True, this Memory can't be randomly picked with a Timeout Event, or explicitly searching for random Memory objects. Ignored for Memory of type Default.

helpboolean | nullableOptional

If True, this Memory's content can be emitted if the user fails to find a question with an answer at the beginning of a session. Ignored for Memory of type Default.

hintsstring[] | nullableOptional

Hints for this Memory.

minTimeoutnumber · double | nullableOptional

Minimum idle timeout, in seconds. If not specified, by default it is set to 20 seconds. The idle timeout is the time after which the client sends a Timeout event and, typically, a random question or story is picked up and proposed to the user. The actual idle timeout is computed as a random number between MinTimeout and MaxTimeout plus the reading time, where the reading time is in turn computed as the time it would take to read the answer at 150 words per minute.

maxTimeoutnumber · double | nullableOptional

Maximum idle timeout, in seconds. If not specified, by default it is set to 40 seconds. The idle timeout is the time after which the client sends a Timeout event and, typically, a random question or story is picked up and proposed to the user. The actual idle timeout is computed as a random number between MinTimeout and MaxTimeout plus the reading time, where the reading time is in turn computed as the time it would take to read the answer at 150 words per minute.

dcmOutcomeTypestring | nullableOptional

Optional type of the outcome to be sent to the DCM platform when this Memory is emitted.

dcmOutcomeCodestring | nullableOptional

Optional code of the outcome to be sent to the DCM platform when this Memory is emitted.

tagsstring[] | nullableOptional

Tags for this Memory.

creationTimestampstring · date-time | nullableOptional

Timestamp of creation. Always present when reading/receiving an object, ignored when writing/sending an object.

creationSessionIDstring | nullableOptional

ID of the session that created this object.

lastChangeTimestampstring · date-time | nullableOptional

Timestamp of latest change. Always present when reading/receiving an object, ignored when writing/sending an object.

lastChangeSessionIDstring | nullableOptional

ID of the latest session that changed this object.

Responses
200
Success
application/json
patch
PATCH /memori/v2/Memory/{strSessionID}/{strMemoryID} HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 1270

{
  "markAsRead": true,
  "memoryID": "text",
  "memoryType": "text",
  "lastRead": "2025-06-06T13:11:59.849Z",
  "readOccurrences": 1,
  "receiverID": "text",
  "receiverTag": "text",
  "receiverName": "text",
  "media": [
    {
      "mediumID": "text",
      "url": "text",
      "content": "text",
      "mimeType": "text",
      "title": "text",
      "properties": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      },
      "creationTimestamp": "2025-06-06T13:11:59.849Z",
      "creationSessionID": "text",
      "lastChangeTimestamp": "2025-06-06T13:11:59.849Z",
      "lastChangeSessionID": "text"
    }
  ],
  "title": "text",
  "titleVariants": [
    "text"
  ],
  "answers": [
    {
      "text": "text",
      "preformatted": true,
      "creationTimestamp": "2025-06-06T13:11:59.849Z",
      "creationSessionID": "text",
      "lastChangeTimestamp": "2025-06-06T13:11:59.849Z",
      "lastChangeSessionID": "text"
    }
  ],
  "date": "2025-06-06T13:11:59.849Z",
  "dateUncertaintyDays": 1,
  "placeName": "text",
  "placeLatitude": 1,
  "placeLongitude": 1,
  "placeUncertaintyKm": 1,
  "conclusive": true,
  "notPickable": true,
  "help": true,
  "hints": [
    "text"
  ],
  "minTimeout": 1,
  "maxTimeout": 1,
  "contextVarsToSet": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "contextVarsToMatch": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "dcmOutcomeType": "text",
  "dcmOutcomeCode": "text",
  "tags": [
    "text"
  ],
  "creationTimestamp": "2025-06-06T13:11:59.849Z",
  "creationSessionID": "text",
  "lastChangeTimestamp": "2025-06-06T13:11:59.849Z",
  "lastChangeSessionID": "text"
}
200

Success

{
  "requestID": 1,
  "requestDateTime": "2025-06-06T13:11:59.849Z",
  "resultCode": 1,
  "resultMessage": "text"
}

Filters Memory objects.

post

This API requires a Giver session.

Path parameters
strSessionIDstringRequired

The session ID

Body

Specifications for a Memory search.

textstring | nullableOptional

Search query. Used only for Search and Filter Memories. Ignored for Random picking and Memory Hints.

searchTypestring | nullableOptional

How to interpret the search query in the Text property:If "Semantic", the query is interpreted as a full question in natural language, and the search is performed in the same way a question would be posed to the Dialog State Machine.If "Literal", the query is intended as space-separated keywords, and the search is performed by looking for them as a substring in the text and titles of Memories. If omitted the search is Semantic by default. Used only for Search and Filter Memories. Ignored for Random picking and Memory Hints.

datestring · date-time | nullableOptional

Approximate date of Memories to limit the search to. Used for Search, Filter Memories and Random picking. Ignored for Memory Hints.

dateUncertaintyDaysnumber · double | nullableOptional

Uncertainty of the date, in days. Required if Date is specified. Used for Search, Filter Memories and Random picking. Ignored for Memory Hints.

placeNamestring | nullableOptional

Name of the approximate place of Memories to limit the search to. Used for Search, Filter Memories and Random picking. Ignored for Memory Hints.

placeLatitudenumber · double | nullableOptional

Latitude of the approximate place of Memories to limit the search to. Used for Search, Filter Memories and Random picking. Ignored for Memory Hints.

placeLongitudenumber · double | nullableOptional

Longitude of the approximate place of Memories to limit the search to. Used for Search, Filter Memories and Random picking. Ignored for Memory Hints.

placeUncertaintyKmnumber · double | nullableOptional

Uncertainty of place, in kilometers. Required if PlaceName or PlaceLatitude and PlaceLongitude are specified. Used for Search, Filter Memories and Random picking. Ignored for Memory Hints.

tagstring | nullableOptional

Extends or limits the search to Memories associated with a Receiver with this tag, depending on the API called:For Search, Random picking and Memory Hints, the search is extended to Memories associated with a Receiver with this tag. If omitted the search is limited to public Memories. As a special case, if the Giver tag is specified then the search is extended to all Memories, whoever they are associated to.For Filter Memories, the search is limited to Memories associated with a Receiver with this tag.

ignoreLastReadboolean | nullableOptional

If set to True, recently picked Memories will not be deprioritized. This means that a Memory never picked and a Memory picked just moments ago will have the same probability to be picked again. If omitted or set to False, recently picked Memories will be much less probable to be picked again. Used only for Random picking. Ignored for Search, Filter Memories and Memory Hints.

excludedMemoryIDsstring[] | nullableOptional

Optional list of Memory IDs that must be excluded from the search result.

memoryTagsstring[] | nullableOptional

Optional list of memory tags. If specified, the search is limited to Memories including ALL the specified tags. Used only for Filter Memories. Ignored for Search, Random picking and Memory Hints.

numberOfResultsinteger · int32 | nullableOptional

Optional number of results. If omitted defaults to 5.

startFrominteger · int32 | nullableOptional

Optional initial result index, 0-based. If omitted defaults to 0. Used for Search, Filter Memories and Memory Hints. Ignored for Random picking.

memoryTypestring | nullableOptional

Optional parameter, if set, filter returns only selected type of memories. Used only for Filter Memories.

withMediaOnlyboolean | nullableOptional

Optional parameter, if set, filter returns only memories that contain media. Used only for Filter Memories.

Responses
200
Success
application/json
post
POST /memori/v2/FilterMemories/{strSessionID} HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 436

{
  "text": "text",
  "searchType": "text",
  "date": "2025-06-06T13:11:59.849Z",
  "dateUncertaintyDays": 1,
  "placeName": "text",
  "placeLatitude": 1,
  "placeLongitude": 1,
  "placeUncertaintyKm": 1,
  "tag": "text",
  "ignoreLastRead": true,
  "excludedMemoryIDs": [
    "text"
  ],
  "contextVars": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "contextVarsToSet": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "memoryTags": [
    "text"
  ],
  "numberOfResults": 1,
  "startFrom": 1,
  "memoryType": "text",
  "withMediaOnly": true
}
200

Success

{
  "count": 1,
  "matches": [
    {
      "memory": {
        "memoryID": "text",
        "memoryType": "text",
        "lastRead": "2025-06-06T13:11:59.849Z",
        "readOccurrences": 1,
        "receiverID": "text",
        "receiverTag": "text",
        "receiverName": "text",
        "media": [
          {
            "mediumID": "text",
            "url": "text",
            "content": "text",
            "mimeType": "text",
            "title": "text",
            "properties": {
              "ANY_ADDITIONAL_PROPERTY": "text"
            },
            "creationTimestamp": "2025-06-06T13:11:59.849Z",
            "creationSessionID": "text",
            "lastChangeTimestamp": "2025-06-06T13:11:59.849Z",
            "lastChangeSessionID": "text"
          }
        ],
        "title": "text",
        "titleVariants": [
          "text"
        ],
        "answers": [
          {
            "text": "text",
            "preformatted": true,
            "creationTimestamp": "2025-06-06T13:11:59.849Z",
            "creationSessionID": "text",
            "lastChangeTimestamp": "2025-06-06T13:11:59.849Z",
            "lastChangeSessionID": "text"
          }
        ],
        "date": "2025-06-06T13:11:59.849Z",
        "dateUncertaintyDays": 1,
        "placeName": "text",
        "placeLatitude": 1,
        "placeLongitude": 1,
        "placeUncertaintyKm": 1,
        "conclusive": true,
        "notPickable": true,
        "help": true,
        "hints": [
          "text"
        ],
        "minTimeout": 1,
        "maxTimeout": 1,
        "contextVarsToSet": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        },
        "contextVarsToMatch": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        },
        "dcmOutcomeType": "text",
        "dcmOutcomeCode": "text",
        "tags": [
          "text"
        ],
        "creationTimestamp": "2025-06-06T13:11:59.849Z",
        "creationSessionID": "text",
        "lastChangeTimestamp": "2025-06-06T13:11:59.849Z",
        "lastChangeSessionID": "text"
      },
      "confidence": 1,
      "confidenceLevel": "text"
    }
  ],
  "requestID": 1,
  "requestDateTime": "2025-06-06T13:11:59.849Z",
  "resultCode": 1,
  "resultMessage": "text"
}

Filters Memory objects, with pagination.

post

This API requires a Giver session. The From and HowMany parameters overwrite the StartFrom and NumberOfResults fields of the SearchQuerySpecs object.

Path parameters
strSessionIDstringRequired

The session ID

frominteger · int32Required

The 0-based index of the first Memory object to list

howManyinteger · int32Required

The number of the Memory objects to list

Body

Specifications for a Memory search.

textstring | nullableOptional

Search query. Used only for Search and Filter Memories. Ignored for Random picking and Memory Hints.

searchTypestring | nullableOptional

How to interpret the search query in the Text property:If "Semantic", the query is interpreted as a full question in natural language, and the search is performed in the same way a question would be posed to the Dialog State Machine.If "Literal", the query is intended as space-separated keywords, and the search is performed by looking for them as a substring in the text and titles of Memories. If omitted the search is Semantic by default. Used only for Search and Filter Memories. Ignored for Random picking and Memory Hints.

datestring · date-time | nullableOptional

Approximate date of Memories to limit the search to. Used for Search, Filter Memories and Random picking. Ignored for Memory Hints.

dateUncertaintyDaysnumber · double | nullableOptional

Uncertainty of the date, in days. Required if Date is specified. Used for Search, Filter Memories and Random picking. Ignored for Memory Hints.

placeNamestring | nullableOptional

Name of the approximate place of Memories to limit the search to. Used for Search, Filter Memories and Random picking. Ignored for Memory Hints.

placeLatitudenumber · double | nullableOptional

Latitude of the approximate place of Memories to limit the search to. Used for Search, Filter Memories and Random picking. Ignored for Memory Hints.

placeLongitudenumber · double | nullableOptional

Longitude of the approximate place of Memories to limit the search to. Used for Search, Filter Memories and Random picking. Ignored for Memory Hints.

placeUncertaintyKmnumber · double | nullableOptional

Uncertainty of place, in kilometers. Required if PlaceName or PlaceLatitude and PlaceLongitude are specified. Used for Search, Filter Memories and Random picking. Ignored for Memory Hints.

tagstring | nullableOptional

Extends or limits the search to Memories associated with a Receiver with this tag, depending on the API called:For Search, Random picking and Memory Hints, the search is extended to Memories associated with a Receiver with this tag. If omitted the search is limited to public Memories. As a special case, if the Giver tag is specified then the search is extended to all Memories, whoever they are associated to.For Filter Memories, the search is limited to Memories associated with a Receiver with this tag.

ignoreLastReadboolean | nullableOptional

If set to True, recently picked Memories will not be deprioritized. This means that a Memory never picked and a Memory picked just moments ago will have the same probability to be picked again. If omitted or set to False, recently picked Memories will be much less probable to be picked again. Used only for Random picking. Ignored for Search, Filter Memories and Memory Hints.

excludedMemoryIDsstring[] | nullableOptional

Optional list of Memory IDs that must be excluded from the search result.

memoryTagsstring[] | nullableOptional

Optional list of memory tags. If specified, the search is limited to Memories including ALL the specified tags. Used only for Filter Memories. Ignored for Search, Random picking and Memory Hints.

numberOfResultsinteger · int32 | nullableOptional

Optional number of results. If omitted defaults to 5.

startFrominteger · int32 | nullableOptional

Optional initial result index, 0-based. If omitted defaults to 0. Used for Search, Filter Memories and Memory Hints. Ignored for Random picking.

memoryTypestring | nullableOptional

Optional parameter, if set, filter returns only selected type of memories. Used only for Filter Memories.

withMediaOnlyboolean | nullableOptional

Optional parameter, if set, filter returns only memories that contain media. Used only for Filter Memories.

Responses
200
Success
application/json
post
POST /memori/v2/FilterMemories/{strSessionID}/{from}/{howMany} HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 436

{
  "text": "text",
  "searchType": "text",
  "date": "2025-06-06T13:11:59.849Z",
  "dateUncertaintyDays": 1,
  "placeName": "text",
  "placeLatitude": 1,
  "placeLongitude": 1,
  "placeUncertaintyKm": 1,
  "tag": "text",
  "ignoreLastRead": true,
  "excludedMemoryIDs": [
    "text"
  ],
  "contextVars": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "contextVarsToSet": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "memoryTags": [
    "text"
  ],
  "numberOfResults": 1,
  "startFrom": 1,
  "memoryType": "text",
  "withMediaOnly": true
}
200

Success

{
  "count": 1,
  "matches": [
    {
      "memory": {
        "memoryID": "text",
        "memoryType": "text",
        "lastRead": "2025-06-06T13:11:59.849Z",
        "readOccurrences": 1,
        "receiverID": "text",
        "receiverTag": "text",
        "receiverName": "text",
        "media": [
          {
            "mediumID": "text",
            "url": "text",
            "content": "text",
            "mimeType": "text",
            "title": "text",
            "properties": {
              "ANY_ADDITIONAL_PROPERTY": "text"
            },
            "creationTimestamp": "2025-06-06T13:11:59.849Z",
            "creationSessionID": "text",
            "lastChangeTimestamp": "2025-06-06T13:11:59.849Z",
            "lastChangeSessionID": "text"
          }
        ],
        "title": "text",
        "titleVariants": [
          "text"
        ],
        "answers": [
          {
            "text": "text",
            "preformatted": true,
            "creationTimestamp": "2025-06-06T13:11:59.849Z",
            "creationSessionID": "text",
            "lastChangeTimestamp": "2025-06-06T13:11:59.849Z",
            "lastChangeSessionID": "text"
          }
        ],
        "date": "2025-06-06T13:11:59.849Z",
        "dateUncertaintyDays": 1,
        "placeName": "text",
        "placeLatitude": 1,
        "placeLongitude": 1,
        "placeUncertaintyKm": 1,
        "conclusive": true,
        "notPickable": true,
        "help": true,
        "hints": [
          "text"
        ],
        "minTimeout": 1,
        "maxTimeout": 1,
        "contextVarsToSet": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        },
        "contextVarsToMatch": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        },
        "dcmOutcomeType": "text",
        "dcmOutcomeCode": "text",
        "tags": [
          "text"
        ],
        "creationTimestamp": "2025-06-06T13:11:59.849Z",
        "creationSessionID": "text",
        "lastChangeTimestamp": "2025-06-06T13:11:59.849Z",
        "lastChangeSessionID": "text"
      },
      "confidence": 1,
      "confidenceLevel": "text"
    }
  ],
  "requestID": 1,
  "requestDateTime": "2025-06-06T13:11:59.849Z",
  "resultCode": 1,
  "resultMessage": "text"
}

Adds a new Memory object.

post

This API requires a Giver session.

Path parameters
strSessionIDstringRequired

The session ID

Body

Specifications for an Add Memory request.

memoryIDstring | nullableOptional

Memory object ID.

memoryTypestring | nullableOptional

Memory type, e.g. Question, Story or Default. Required during Add operations. Currently possible values are: Question: this Memory is a question, hence its title is expected in interrogative form Story: this Memory is a story, hence its title is expected in affirmative form Default: this Memory is a default answer, hence its title is ignored (empty or null) CompletionDraft: this Memory is draft from a completion, obtained via a generative AI. ExpertReference: this Memory is the results of a question asked to a Board of Experts, and the answer is the name of the Expert that replied to the question.

lastReadstring · date-time | nullableOptional

Timestamp of the last time this Memory has been shown to a Receiver. This value is also used when picking random memories to avoid showing memories that have already been shown recently. Null if the Memory has not been shown yet.

readOccurrencesinteger · int32 | nullableOptional

Number of times this Memory has been shown to a Receiver. Null if the Memory has not been shown yet.

receiverIDstring | nullableOptional

ID of the Person object to whom this Memory belongs. Null if the Memory is public. When updating, set it to a single dash character (-) to remove a previously set association with a Person.

receiverTagstring | nullableOptional

Tag of the Person object to whom this Memory belongs. Null if the Memory is public.

receiverNamestring | nullableOptional

Name of the Person object to whom this Memory belongs. Null if the Memory is public.

titlestring | nullableOptional

Title of the Question or Story. Null if this Memory is a Default.

titleVariantsstring[] | nullableOptional

Title variants of this Question or Story. Empty if this Memory is a Default.

datestring · date-time | nullableOptional

Approximate date associated with this Memory. When updating, set it to midnight Jan. 1st 1 A.D. (01/01/01 00:00:00) to clear any previously set Date and DateUncertaintyDays.

dateUncertaintyDaysnumber · double | nullableOptional

Uncertainty in the date associated with this Memory, expressed in days.

placeNamestring | nullableOptional

Name of the place associated with this Memory. When updating, set it to a single dash character (-) to clear any previously set Place (by name or coordinates) and PlaceUncertaintyKm.

placeLatitudenumber · double | nullableOptional

Latitude of the place associated with this Memory.

placeLongitudenumber · double | nullableOptional

Longitude of the place associated with this Memory.

placeUncertaintyKmnumber · double | nullableOptional

Uncertainty of the place associated with this Memory, expressed in kilometers.

conclusiveboolean | nullableOptional

If True, when this Memory is emitted it is NOT followed by a continuation prompt, such as "Is there anything else you want to know?".

notPickableboolean | nullableOptional

If True, this Memory can't be randomly picked with a Timeout Event, or explicitly searching for random Memory objects. Ignored for Memory of type Default.

helpboolean | nullableOptional

If True, this Memory's content can be emitted if the user fails to find a question with an answer at the beginning of a session. Ignored for Memory of type Default.

hintsstring[] | nullableOptional

Hints for this Memory.

minTimeoutnumber · double | nullableOptional

Minimum idle timeout, in seconds. If not specified, by default it is set to 20 seconds. The idle timeout is the time after which the client sends a Timeout event and, typically, a random question or story is picked up and proposed to the user. The actual idle timeout is computed as a random number between MinTimeout and MaxTimeout plus the reading time, where the reading time is in turn computed as the time it would take to read the answer at 150 words per minute.

maxTimeoutnumber · double | nullableOptional

Maximum idle timeout, in seconds. If not specified, by default it is set to 40 seconds. The idle timeout is the time after which the client sends a Timeout event and, typically, a random question or story is picked up and proposed to the user. The actual idle timeout is computed as a random number between MinTimeout and MaxTimeout plus the reading time, where the reading time is in turn computed as the time it would take to read the answer at 150 words per minute.

dcmOutcomeTypestring | nullableOptional

Optional type of the outcome to be sent to the DCM platform when this Memory is emitted.

dcmOutcomeCodestring | nullableOptional

Optional code of the outcome to be sent to the DCM platform when this Memory is emitted.

tagsstring[] | nullableOptional

Tags for this Memory.

creationTimestampstring · date-time | nullableOptional

Timestamp of creation. Always present when reading/receiving an object, ignored when writing/sending an object.

creationSessionIDstring | nullableOptional

ID of the session that created this object.

lastChangeTimestampstring · date-time | nullableOptional

Timestamp of latest change. Always present when reading/receiving an object, ignored when writing/sending an object.

lastChangeSessionIDstring | nullableOptional

ID of the latest session that changed this object.

Responses
200
Success
application/json
post
POST /memori/v2/Memory/{strSessionID} HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 1252

{
  "memoryID": "text",
  "memoryType": "text",
  "lastRead": "2025-06-06T13:11:59.849Z",
  "readOccurrences": 1,
  "receiverID": "text",
  "receiverTag": "text",
  "receiverName": "text",
  "media": [
    {
      "mediumID": "text",
      "url": "text",
      "content": "text",
      "mimeType": "text",
      "title": "text",
      "properties": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      },
      "creationTimestamp": "2025-06-06T13:11:59.849Z",
      "creationSessionID": "text",
      "lastChangeTimestamp": "2025-06-06T13:11:59.849Z",
      "lastChangeSessionID": "text"
    }
  ],
  "title": "text",
  "titleVariants": [
    "text"
  ],
  "answers": [
    {
      "text": "text",
      "preformatted": true,
      "creationTimestamp": "2025-06-06T13:11:59.849Z",
      "creationSessionID": "text",
      "lastChangeTimestamp": "2025-06-06T13:11:59.849Z",
      "lastChangeSessionID": "text"
    }
  ],
  "date": "2025-06-06T13:11:59.849Z",
  "dateUncertaintyDays": 1,
  "placeName": "text",
  "placeLatitude": 1,
  "placeLongitude": 1,
  "placeUncertaintyKm": 1,
  "conclusive": true,
  "notPickable": true,
  "help": true,
  "hints": [
    "text"
  ],
  "minTimeout": 1,
  "maxTimeout": 1,
  "contextVarsToSet": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "contextVarsToMatch": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "dcmOutcomeType": "text",
  "dcmOutcomeCode": "text",
  "tags": [
    "text"
  ],
  "creationTimestamp": "2025-06-06T13:11:59.849Z",
  "creationSessionID": "text",
  "lastChangeTimestamp": "2025-06-06T13:11:59.849Z",
  "lastChangeSessionID": "text"
}
200

Success

{
  "memoryID": "text",
  "requestID": 1,
  "requestDateTime": "2025-06-06T13:11:59.849Z",
  "resultCode": 1,
  "resultMessage": "text"
}