logo

Prompt Chaining - Automated Workflow to Enhance Model Reasoning

Prompt chaining feature on TypingMind has been upgraded!
Now, not only can you chain simple prompts, but you can also bring different AI Agents into your workflow to create an automated system to streamline complex tasks.
This option allows you to generate workflows for multiple AI agents to make the process of solving tasks faster and more efficient, and enhance the model reasoning to get more accurate and relevant answer.

What is Prompt Chaining?

Prompt chaining on TypingMind is a method that allows you to link multiple prompts together in a sequence, so that when one AI response is completed, the next prompt is automatically triggered.
Instead of manually entering each new prompt after the AI provides an answer, prompt chaining automates this process to provide you with smoother and faster interactions.
Image without caption
This significantly boosts the AI's reasoning abilities and saves you from time-consuming back-and-forth interactions.
And we call this โ€œFlow.โ€

How does Flow for Prompt Chaining work on TypingMind?

There are two ways to activate Flow for prompt chaining on TypingMind:
  • At the bottom right of the message area, within the send button, click the toggle icon and select "Queue message."
  • Or, simply use the syntax ---- (four dashes) to queue your next message.
One of the most exciting part is the ability to involve multiple AI agents in your workflow by mentioning @[AI Agent name]:
  • You can direct specific agents to take charge of different parts of your workflow.
  • Each agent brings its own settings like AI models, parameters, and plugins to the table to allow you to create more powerful, dynamic processes.
Image without caption
Image without caption

Use cases

1. For content automation

We will create a prompt chain where:
  • Step 1: Write a product description
  • Step 2: Mention @[SEO Blog Content] to help write a blog about this product optimized for SEO, targeting keywords
  • Step 3: Mention @[Blog Image Generator] to help create a blog cover image for that article
Image without caption
Image without caption

2. For research automation

We will create a prompt chain where:
  • Step 1: Mention @[Competitor Marketing Analyst] to help gather market trends in a specific industry (e.g., electric vehicles).
  • Step 2: visualize the gathered data.
  • Step 3: analyze potential competitors based on the trends.
  • Step 4: generate insights and predictions for future growth.
  • Step 5: Mention @[Marketing Expert] to help provide actionable recommendations for a business strategy.
Image without caption
Image without caption
Image without caption

Key facts and best practices for optimizing โ€œFlowโ€ usage on TypingMind

  • Save and re-use chains: add your chain of prompts to the Prompt Library for easy access and re-use. To quickly find a saved prompt, type / in the message input box and search by its name.
Image without caption
  • Mention syntax (@): to mention an AI Agent, use the format @[exact agent name]. The name inside the brackets must be case-sensitive and an exact match to the agent in your library. If two agents share the same name, the first one in the list will be selected.
    • When typing @, your AI Agent list will automatically pop up, which allows you to search and select the agent you need easily.
Image without caption
๐Ÿ’ก
Please note that the mention syntax also works in regular messages or prompts, not just in queued messages.
  • One agent per message: you can only mention one agent per message.
Image without caption
  • Access conversation history: the mentioned AI agent can access all previous messages in the conversation, ensuring its responses are contextually relevant.
  • Use settings that are assigned to the AI Agents: each AI agent works with its own settings, including its AI model, parameters, dynamic context, and plugins.
Image without caption