# We need prompt chains: Allow custom AI persona tools to access LangChain.js and/or longer execution time

**URL:** <https://meta.discourse.org/t/we-need-prompt-chains-allow-custom-ai-persona-tools-to-access-langchain-js-and-or-longer-execution-time/327207>\
**Category:** Feature\
**Tags:** ai\
**Created:** [September 19, 2024, 8:34am UTC](https://meta.discourse.org/t/we-need-prompt-chains-allow-custom-ai-persona-tools-to-access-langchain-js-and-or-longer-execution-time/327207 "2024-09-19T08:34:50Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![MachineScholar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/machinescholar/32/424719_2.png) [@MachineScholar](https://meta.discourse.org/u/MachineScholar)\
**Post date:** [September 19, 2024, 10:03am UTC](https://meta.discourse.org/t/we-need-prompt-chains-allow-custom-ai-persona-tools-to-access-langchain-js-and-or-longer-execution-time/327207/3 "2024-09-19T10:03:37Z")

</div>

Good points 😃 Thanks for your reply

> [@Jagster](#):
>
> Can you give practical examples of what all of that can give to the business behind a forum and for an user?

One could think up an infinite of use-cases connecting LLMs together to achieve a goal, but here’s a simple down-to-Earth example…

Say there is a forum for researchers who need to find new research papers quickly and easily. One could just use the already-available http library in the AI plugin custom tool builder, then make a tool which sends a request to some database of papers (for example arXiv or peer-reviewed academic journal). But this is essentially just a “one-shot” attempt.

A better approach would be to chain together multiple LLM calls to take a step-by-step approach to the problem:

1. chat with the user about what their research topic is (loop this a few times to get lots of details)
2. summarize the user’s needs according to a predefined template
3. turn that summary into a API request and receive a list of potential matches from the database of papers
4. analyze the abstract of each paper to ensure its actually relevant
5. present that list to the user and explain why each paper is relevant to their research topic.

This isn’t what I am working on (I don’t necessarily want to hand out my business model and architecture 😃 ), but it is a simple and realistic example which is actually being addressed by some developers.

> [@Jagster](#):
>
> And I’m not totally sure if you are actually trying to sell a B2B concept or something useful to users in a forum environment.

Essentially what I am trying to sell users (via the lovely subscriptions plugin) is access an AI bot that is more complex than just a system prompt with a simple tool hooked up to some service which shoots back some data (stocks prices, etc.). More complex in the sense that it solves a problem / addresses a user query in multiple steps, each step utilizing an LLM with a different system prompt. This is essentially what the new OpenAI o1 model does. 😊

---

_[View the full topic](https://meta.discourse.org/t/we-need-prompt-chains-allow-custom-ai-persona-tools-to-access-langchain-js-and-or-longer-execution-time/327207)._
