Lola Rephrasing icon

Lola Rephrasing

Lola NLP Rephrasing

Overview

The Lola Rephrasing node is designed to rephrase a given text using NLP techniques. It can generate alternative phrasings for the input text, optionally applying a specific tone or style. This node is useful in scenarios where you want to paraphrase content, create variations for A/B testing, or adjust the tone of messages (e.g., making them more informal, cheerful, or sarcastic).

Practical examples:

  • Generating multiple versions of marketing copy for email campaigns.
  • Rewriting user-generated content to match a brand's voice.
  • Creating diverse training data for machine learning models.

Properties

Name Meaning
Bypass Rephrase Whether to skip the rephrasing process and return the original text as-is.
Text The text to rephrase. (Required)
Enable Cache Whether to enable caching for random phrases.
Rephrase Text Sample Size The number of alternative phrases to generate for rephrasing. Leave empty to use the default value.
Rephrasing Tone The tone/style for rephrasing. Examples: informal, cheerful, sarcastic, ironic, happier, etc.

Output

The node outputs a JSON object with the following structure:

{
  "lola_rephrase": {
    "sourceText": "<original input text>",
    "rephrasedText": "<selected or original text>",
    "samples": [
      "<alternative phrasing 1>",
      "<alternative phrasing 2>",
      "... (up to sample size)"
    ]
  }
}
  • sourceText: The original input text.
  • rephrasedText: The selected rephrased version (randomly chosen from samples, or the original if bypassed or no alternatives found).
  • samples: An array of all generated alternative phrasings (may be empty if rephrasing fails or is bypassed).

Dependencies

  • May require a credential named lolaKeyApi if configured to use external Lola NLP services.
  • No mandatory API key by default, but integration with external NLP services may need configuration.

Troubleshooting

Common issues:

  • If "Bypass Rephrase" is enabled, the output will always match the input text.
  • If the NLP service cannot generate alternatives, the "samples" array will be empty and "rephrasedText" will match "sourceText".
  • Incorrect or missing credentials may prevent access to external rephrasing services.

Error messages:

  • "NLP Services can't rephrase this ...": Indicates that the rephrasing service could not generate alternatives for the provided text. Try changing the input text or adjusting the tone/sample size.

Links and References

Discussion