> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.utils.ai.SendPrompt

- Component: `appmixer.utils.ai.SendPrompt`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.utils.ai 1.1.4](https://connectors.appmixer.com/connector/appmixer.utils.ai/1.1.4.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.utils.ai/1.1.4/component/appmixer.utils.ai.SendPrompt>

Send a prompt to a Large Language Model and receive a response.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Prompt (`prompt`) | textarea | - |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Answer (`answer`) | string | - |
| Prompt (`prompt`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.utils.ai.SendPrompt",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Send a prompt to a Large Language Model and receive a response.",
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string"
          }
        },
        "required": [
          "prompt"
        ]
      },
      "inspector": {
        "inputs": {
          "prompt": {
            "label": "Prompt",
            "type": "textarea",
            "index": 1
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Answer",
          "value": "answer",
          "schema": {
            "type": "string",
            "example": "Paris is the capital of France."
          }
        },
        {
          "label": "Prompt",
          "value": "prompt",
          "schema": {
            "type": "string",
            "example": "What is the capital of France?"
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
