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

Session

PreviousSearchNextStats

Closes the session and disposes of its Dialog State Machine.

delete
Path parameters
strSessionIDstringRequired

The session ID

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

Success

{
  "requestID": 1,
  "requestDateTime": "2025-06-06T18:27:33.854Z",
  "resultCode": 1,
  "resultMessage": "text"
}
  • POSTInitializes a new Dialog State Machine session for an existing Memori.
  • GETReturns the current state of a session's Dialog State Machine.
  • DELETECloses the session and disposes of its Dialog State Machine.

Returns the current state of a session's Dialog State Machine.

get
Path parameters
strSessionIDstringRequired

The session ID

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

Success

{
  "currentState": {
    "state": "text",
    "stateName": "text",
    "previousState": "text",
    "confidence": 1,
    "confidenceLevel": "text",
    "emission": "text",
    "emittedMedia": [
      {
        "mediumID": "text",
        "url": "text",
        "content": "text",
        "mimeType": "text",
        "title": "text",
        "properties": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        },
        "creationTimestamp": "2025-06-06T18:27:33.854Z",
        "creationSessionID": "text",
        "lastChangeTimestamp": "2025-06-06T18:27:33.854Z",
        "lastChangeSessionID": "text"
      }
    ],
    "continuationEmitted": true,
    "emitter": "text",
    "completion": true,
    "acceptsTimeout": true,
    "acceptsAbort": true,
    "acceptsMedia": true,
    "acceptsDate": true,
    "acceptsPlace": true,
    "acceptsTag": true,
    "acceptsFeedback": true,
    "hints": [
      "text"
    ],
    "timeout": 1,
    "currentTag": "text",
    "currentTagAuthenticated": true,
    "currentDate": "2025-06-06T18:27:33.854Z",
    "currentPlaceName": "text",
    "currentLatitude": 1,
    "currentLongitude": 1,
    "currentUncertaintyKm": 1,
    "currentMemoryID": "text",
    "lastMatchedMemoryID": "text",
    "currentMedia": [
      {
        "mediumID": "text",
        "url": "text",
        "content": "text",
        "mimeType": "text",
        "title": "text",
        "properties": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        },
        "creationTimestamp": "2025-06-06T18:27:33.854Z",
        "creationSessionID": "text",
        "lastChangeTimestamp": "2025-06-06T18:27:33.854Z",
        "lastChangeSessionID": "text"
      }
    ],
    "contextVars": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "memoryTags": [
      "text"
    ]
  },
  "requestID": 1,
  "requestDateTime": "2025-06-06T18:27:33.854Z",
  "resultCode": 1,
  "resultMessage": "text"
}

Initializes a new Dialog State Machine session for an existing Memori.

post
Body

Specifications for a Session Open request.

memoriIDstring | nullableOptional

The Memori object ID. Required.

passwordstring | nullableOptional

Password. As an alternative the minimum number of recovery tokens can be supplied in the RecoveryTokens property. If the Memori is public no password is required.

recoveryTokensstring[] | nullableOptional

Recovery tokens, as an alternative to the Memori's password. Must be supplied in the minimum number set during Memori registration.

tagstring | nullableOptional

Optional initial tag. If specified the PIN property must also be specified. The Dialog State Machine will try to transition to the corresponding Giver or Receiver automatically. Transition may fail if Tag or PIN are incorrect, or if the Giver or Receiver have not been set up yet.

pinstring | nullableOptional

Optional PIN corresponding to the initial tag, expressed as a 6-digit number between 000000 and 999999. Must be specified if the Tag property is specified.

initialQuestionstring | nullableOptional

Optional initial question. It is send as a Text Entered Event to the Dialog State Machine if the state session opening is R1.

birthDatestring · date-time | nullableOptional

Birth date of the user. Age verification may be applied when Memori content is NSFW or makes use of completions. If a login token is specified in the Additional Info field, the user's birth date obtained from the login token overrides whatever value is specified here. This value is never stored.

maintenanceCodestring | nullableOptional

For internal use only.

Responses
200
Success
application/json
post
POST /memori/v2/Session HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 286

{
  "memoriID": "text",
  "password": "text",
  "recoveryTokens": [
    "text"
  ],
  "tag": "text",
  "pin": "text",
  "initialContextVars": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "initialQuestion": "text",
  "birthDate": "2025-06-06T18:27:33.854Z",
  "maintenanceCode": "text",
  "additionalInfo": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  }
}
200

Success

{
  "sessionID": "text",
  "currentState": {
    "state": "text",
    "stateName": "text",
    "previousState": "text",
    "confidence": 1,
    "confidenceLevel": "text",
    "emission": "text",
    "emittedMedia": [
      {
        "mediumID": "text",
        "url": "text",
        "content": "text",
        "mimeType": "text",
        "title": "text",
        "properties": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        },
        "creationTimestamp": "2025-06-06T18:27:33.854Z",
        "creationSessionID": "text",
        "lastChangeTimestamp": "2025-06-06T18:27:33.854Z",
        "lastChangeSessionID": "text"
      }
    ],
    "continuationEmitted": true,
    "emitter": "text",
    "completion": true,
    "acceptsTimeout": true,
    "acceptsAbort": true,
    "acceptsMedia": true,
    "acceptsDate": true,
    "acceptsPlace": true,
    "acceptsTag": true,
    "acceptsFeedback": true,
    "hints": [
      "text"
    ],
    "timeout": 1,
    "currentTag": "text",
    "currentTagAuthenticated": true,
    "currentDate": "2025-06-06T18:27:33.854Z",
    "currentPlaceName": "text",
    "currentLatitude": 1,
    "currentLongitude": 1,
    "currentUncertaintyKm": 1,
    "currentMemoryID": "text",
    "lastMatchedMemoryID": "text",
    "currentMedia": [
      {
        "mediumID": "text",
        "url": "text",
        "content": "text",
        "mimeType": "text",
        "title": "text",
        "properties": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        },
        "creationTimestamp": "2025-06-06T18:27:33.854Z",
        "creationSessionID": "text",
        "lastChangeTimestamp": "2025-06-06T18:27:33.854Z",
        "lastChangeSessionID": "text"
      }
    ],
    "contextVars": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "memoryTags": [
      "text"
    ]
  },
  "requestID": 1,
  "requestDateTime": "2025-06-06T18:27:33.854Z",
  "resultCode": 1,
  "resultMessage": "text"
}