It helps to generate narrative outlines, complete stories, or dialogue.And can also suggest creative ideas, themes, and twists, offering a collaborative

Overview
1

Notes

Storytelling 

This workflow helps to write stories by simply providing input as genre, plot points, or characters, and the workflow can generate narrative outlines, complete stories, or dialogue. It can also suggest creative ideas, themes, and twists, offering a collaborative experience that enhances the creative process.

Model used

This workflow uses the GPT-4 Turbo Model with defined prompt template optimized for writing stories.

How to use the Storytelling workflow? 

Using Clarifai SDK

Export your PAT as an environment variable. Then, import and initialize the API Client.

Find your PAT in your security settings.

export CLARIFAI_PAT={your personal access token}

Prediction with the workflow

from clarifai.client.workflow import Workflow

workflow_url = 'https://clarifai.com/clarifai/content-generation-template/workflows/storytelling-gpt-4-turbo'

text = 'A heartwarming narrative of two childhood friends who embark on a road trip to fulfill a bucket list, rediscovering themselves and their friendship along the way'

summarisation = Workflow(workflow_url).predict_by_bytes( text.encode(), input_type="text")

# Get workflow results
print(prediction.results[0].outputs[-1].data.text.raw)

Using Workflow

To utilize the Storytelling workflow, you can input text through the Blue Plus Try your own Input button and it will output the captivating stories that resonate with audiences.

  • Workflow ID
    storytelling-gpt-4-turbo
  • Description
    It helps to generate narrative outlines, complete stories, or dialogue.And can also suggest creative ideas, themes, and twists, offering a collaborative experience that enhances the creative process.
  • Last Updated
    Mar 22, 2024
  • Privacy
    PUBLIC
  • Share