# PromptHub

> Retrieve versioned prompts and run PromptHub projects with your own variables.

App · 3 actions. Web page: https://docs.lodol.com/docs/integrations/prompt-hub

## Actions

### Get prompt

Get prompt.

**Inputs**

- ID (`id`, text, required): The PromptHub project ID.
- Branch (`branch`, text): Branch name; leave empty for the default branch.

**Outputs**

- `response` (object): Response.

**Example output**

```json
{
  "response": {
    "data": {
      "configuration": {},
      "hash": "example",
      "id": "example",
      "model": "example",
      "project_id": "example",
      "prompt": "example"
    }
  }
}
```

### List projects

List projects. Gets one page; to see more, run it again with the next page it gives.

**Inputs**

- ID (`id`, text, required): Your PromptHub team ID.

**Outputs**

- `response` (object): Response.

**Example output**

```json
{
  "response": {
    "data": []
  }
}
```

### Run prompt

Run prompt.

**Inputs**

- ID (`id`, text, required): The PromptHub project ID.
- Branch (`branch`, text): Branch name; leave empty for the default branch.
- Variables (`variables`, object): Variables.
- Metadata (`metadata`, object): Metadata.

**Outputs**

- `response` (object): Response.

**Example output**

```json
{
  "response": {}
}
```
