# Rasa Rephrasing Responses

> >

- **Type:** Skill
- **Install:** `agentstack add skill-rasahq-rasa-agent-skills-rasa-rephrasing-responses`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [RasaHQ](https://agentstack.voostack.com/s/rasahq)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [RasaHQ](https://github.com/RasaHQ)
- **Source:** https://github.com/RasaHQ/rasa-agent-skills/tree/main/skills/rasa-rephrasing-responses

## Install

```sh
agentstack add skill-rasahq-rasa-agent-skills-rasa-rephrasing-responses
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Rephrasing Responses in Rasa

The Contextual Response Rephraser uses an LLM to dynamically rewrite templated
responses, making them sound more natural and context-aware while preserving the
original meaning. It reads conversation history and user input to ensure rephrasings fit
the context.

## Workflow

1. Enable the rephraser in `endpoints.yml` (see "Endpoints configuration").
2. Decide the rephrasing scope — per-response or all responses
   (see "Rephrasing scope").
3. Add `metadata: rephrase: True/False` on individual responses as needed
   (see "Domain-side metadata").
4. Optionally customize the prompt globally or per response
   (see "Prompt customization").

## Endpoints configuration

Enable the rephraser by adding `nlg: type: rephrase` to `endpoints.yml`.

Configure the LLM model and temperature. Lower temperature (default 0.3) produces more
predictable rephrasings; higher temperature produces more variable output but risks
altering meaning.

```yaml
nlg:
  type: rephrase
  llm:
    model_group: my_llm               # optional, defaults to the default model

model_groups:
  - id: my_llm
    models:
      - provider:      # e.g. openai, azure, self-hosted
        model: 
        temperature: 0.3              # 0.0–2.0, default 0.3
```

### Conversation history

Two modes for how conversation history is included in the rephrasing
prompt.

**Summary mode** (default) — summarizes history using an additional LLM call. No extra
config needed.

**Transcript mode** — keeps the last *n* turns as-is. Set `summarize_history: False` and
optionally adjust `max_historical_turns` (default 5).

```yaml
nlg:
  type: rephrase
  summarize_history: False
  max_historical_turns: 5
```

## Rephrasing scope

### Specific responses only (default)

No `endpoints.yml` change needed. Add `metadata: rephrase: True` on each response you
want rephrased.

```yaml
responses:
  utter_greet:
    - text: "Hey! How can I help you?"
      metadata:
        rephrase: True
```

### All responses

Set `rephrase_all: true` in `endpoints.yml`. Every response is rephrased without needing
per-response metadata.

```yaml
nlg:
  type: rephrase
  rephrase_all: true
```

### All except specific ones

Set `rephrase_all: true` in `endpoints.yml`, then opt out individual responses with
`metadata: rephrase: False`.

```yaml
responses:
  utter_legal_disclaimer:
    - text: "By proceeding you agree to our terms and conditions."
      metadata:
        rephrase: False
```

## Prompt customization

Reference a custom Jinja2 template globally in `endpoints.yml`, or override per response
via `rephrase_prompt` in metadata.

Available variables: `{{history}}`, `{{current_input}}`, `{{suggested_response}}`.

```yaml
# Global prompt — endpoints.yml
nlg:
  type: rephrase
  prompt: prompts/response-rephraser-template.jinja2
```

```yaml
# Per-response prompt — domain.yml
responses:
  utter_greet:
    - text: "Hey! How can I help you?"
      metadata:
        rephrase: True
        rephrase_prompt: |
          Rephrase the suggested response in a friendly, casual tone.
          Stay close to the original meaning.
          Context: {{history}}
          {{current_input}}
          Suggested: {{suggested_response}}
          Rephrased:
```

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [RasaHQ](https://github.com/RasaHQ)
- **Source:** [RasaHQ/rasa-agent-skills](https://github.com/RasaHQ/rasa-agent-skills)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-rasahq-rasa-agent-skills-rasa-rephrasing-responses
- Seller: https://agentstack.voostack.com/s/rasahq
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
