> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getcargo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# PromptLayer

> Run PromptLayer workflows for LLM-powered automation

PromptLayer is a platform for managing and running LLM workflows. The Cargo integration enables you to trigger PromptLayer workflows with dynamic input variables.

## Authentication

Connect to PromptLayer using your API key.

### Connection details

| Field       | Description              |
| ----------- | ------------------------ |
| **API key** | Your PromptLayer API key |

***

## PromptLayer actions

### Run

Execute a PromptLayer workflow with custom input variables.

**Configuration**

| Field                | Description                         |
| -------------------- | ----------------------------------- |
| **Workflow**         | Select a workflow from your account |
| **Workflow version** | Specific version to run (optional)  |
| **Input variables**  | Key-value pairs for workflow inputs |

**Input variables**

Add dynamic input variables to pass data into your workflow:

| Field     | Description                    |
| --------- | ------------------------------ |
| **Name**  | Variable name (as in workflow) |
| **Value** | Value to pass (expression)     |

***

## Use cases

<AccordionGroup>
  <Accordion title="Content generation" icon="file-lines">
    Generate personalized content using LLM workflows.
  </Accordion>

  <Accordion title="Data extraction" icon="database">
    Extract structured data from unstructured text.
  </Accordion>

  <Accordion title="Classification" icon="tags">
    Classify leads, tickets, or content using AI.
  </Accordion>

  <Accordion title="Summarization" icon="compress">
    Summarize long-form content for quick consumption.
  </Accordion>
</AccordionGroup>

***

## Best practices

1. **Define workflows in PromptLayer** - Create and test workflows in PromptLayer first
2. **Map input variables** - Ensure variable names match between Cargo and PromptLayer
3. **Version control** - Use specific versions for production stability
