# Personal AI

> Send messages to a Personal AI persona, read conversations and upload memories.

App · 7 actions. Web page: https://docs.lodol.com/docs/integrations/personal-ai

## Actions

### Add a memory

Add a text memory to a persona’s memory stack.

**Inputs**

- Text (`text`, text, required): The text to send to your persona.
- Source name (`source_name`, text, required): A label for where the memory came from.
- Persona (`persona`, text): The persona name before .personal.ai. Leave blank to use your default persona.
- Created time (`created_time`, date and time): Date and time when the memory was created.
- Tags (`tags`, list): Add each tag separately.

**Outputs**

- `data` (object): The response from Personal AI.

**Example output**

```json
{
  "data": {
    "created_at_utc": "example",
    "id": "example",
    "memlabel": "example",
    "success": 1
  }
}
```

### Get a conversation

Read messages from a Personal AI conversation.

**Inputs**

- Session ID (`session_id`, text, required): The session ID from Send a message to a persona.
- Persona (`persona`, text): The persona name before .personal.ai. Leave blank to use your default persona.
- Limit (`limit`, number): The number of messages to return. From 1 to 500.

**Outputs**

- `data` (list): The response from Personal AI.

**Example output**

```json
{
  "data": [
    {
      "SessionId": "example",
      "ai_message": "example",
      "ai_name": "example",
      "ai_score": 1,
      "raw_message": "example"
    }
  ]
}
```

### Instruct a persona

Send an instruction to the persona’s search command.

**Inputs**

- Text (`text`, text, required): The text to send to your persona.
- Persona (`persona`, text): The persona name before .personal.ai. Leave blank to use your default persona.
- Context (`context`, text): Additional information for the persona to use in its answer.
- Source name (`source_name`, text): The name of the source of the message.

**Outputs**

- `data` (object): The response from Personal AI.

**Example output**

```json
{
  "data": {
    "SessionId": "example",
    "ai_message": "example",
    "ai_name": "example",
    "ai_score": 1,
    "raw_message": "example"
  }
}
```

### Invite someone to a persona

Send an invitation to use a persona or lounge.

**Inputs**

- Email (`email`, text, required): The email address that should receive the invitation.
- Persona (`persona`, text, required): The persona or lounge name before .personal.ai.

**Outputs**

- `data` (object): The response from Personal AI.

**Example output**

```json
{
  "data": {}
}
```

### Send a message to a persona

Send a message to a Personal AI persona and get its reply.

**Inputs**

- Text (`text`, text, required): The text to send to your persona.
- Persona (`persona`, text): The persona name before .personal.ai. Leave blank to use your default persona.
- User name (`user_name`, text): The name of the person sending the message.
- Source name (`source_name`, text): The name of the source of the message.
- Session ID (`session_id`, text): The session ID from a previous message.
- Context (`context`, text): Additional information for the persona to use in its answer.

**Outputs**

- `data` (object): The response from Personal AI.

**Example output**

```json
{
  "data": {
    "SessionId": "example",
    "ai_message": "example",
    "ai_name": "example",
    "ai_score": 1,
    "raw_message": "example"
  }
}
```

### Upload a text document

Upload text as a Personal AI document, with an option to add it to memory.

**Inputs**

- Text (`text`, text, required): The text to send to your persona.
- Persona (`persona`, text): The persona name before .personal.ai. Leave blank to use your default persona.
- Title (`title`, text): The document title.
- Add to memory (`add_to_memory`, true/false): Add this content to the persona’s memory.
- Tags (`tags`, list): Add each tag separately.

**Outputs**

- `data` (object): The response from Personal AI.

**Example output**

```json
{
  "data": {
    "success": true
  }
}
```

### Upload a web page

Import a public web page as a document.

**Inputs**

- URL (`url`, text, required): The public HTTPS page to import.
- Persona (`persona`, text): The persona name before .personal.ai. Leave blank to use your default persona.
- Title (`title`, text): The document title.
- Add to memory (`add_to_memory`, true/false): Add this content to the persona’s memory.
- Tags (`tags`, list): Add each tag separately.

**Outputs**

- `data` (object): The response from Personal AI.

**Example output**

```json
{
  "data": {
    "success": true
  }
}
```
