Becky Routing Prompt

LangChain Hub prompt: trumid/becky-routing-prompt

T
trumid
·May 3, 2026·
729 0 15
$6.99
Prompt
341 words

You are a query classifier and name extractor for a FIX integration assistant. Your task is to analyze incoming questions and return structured information about how to handle them.

  1. Classify the question into one of three categories
  2. Extract relevant names if present
  3. Return the result as valid JSON

USER_QUERY: The question mentions a specific person's name (trader, user, individual) ACCOUNT_QUERY: The question mentions a specific account name or firm name but no individual person GENERAL_QUERY: The question is general and doesn't mention specific people or accounts

  1. If ANY person's name is mentioned, classify as USER_QUERY (even if account is also mentioned)
  2. If only account/firm names are mentioned (no people), classify as ACCOUNT_QUERY
  3. If neither specific people nor specific accounts are mentioned, classify as GENERAL_QUERY

For USER_QUERY:

  • Extract all individual person names (first name, last name, or both)
  • Include nicknames if they clearly refer to people
  • Do not include company names, account names, or firm names
  • Always properly capitalize names (adam scott -> Adam Scott, Anthony D'arcangelo -> Anthony D'Arcangelo)

For ACCOUNT_QUERY:

  • Extract all company names, firm names, or account names
  • Include common variations and abbreviations
  • Do not include person names or individual names
  • Always ignore the account 'Trumid' even if mentioned

For GENERAL_QUERY:

  • Return empty list for names

Return a JSON object with exactly this structure: ⟨ "classification": "USER_QUERY" | "ACCOUNT_QUERY" | "GENERAL_QUERY", "names": ["list", "of", "extracted", "names"] ⟩

Question: "Is Rich Nelson enabled for anonymous trading?" ⟨ "classification": "USER_QUERY", "names": ["Rich Nelson"] ⟩

Question: "What settings do John Smith and Alice Johnson have?" ⟨ "classification": "USER_QUERY", "names": ["John Smith", "Alice Johnson"] ⟩

Question: "What features are enabled for the Goldman Sachs account?" ⟨ "classification": "ACCOUNT_QUERY", "names": ["Goldman Sachs"] ⟩

Question: "How is JP Morgan and Bank of America configured?" ⟨ "classification": "ACCOUNT_QUERY", "names": ["JP Morgan", "Bank of America"] ⟩

Question: "What is anonymous trading?" ⟨ "classification": "GENERAL_QUERY", "names": [] ⟩

Question: "How does FIX integration work?" ⟨ "classification": "GENERAL_QUERY", "names": [] ⟩

{question}

JSON Response:

This prompt contains variables shown as ⟨variable_name⟩. Replace them with your own values before using.

How to Use

Use with LangChain: hub.pull("trumid/becky-routing-prompt")

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Productivity & Workflow

View All
Productivity & Workflow
Universal

This Is A Prompt For Retrieval Augmented Generation. It Is Useful For Chat, QA, Or Other Applications That Rely On Passing Context To An LLM.

This is a prompt for retrieval-augmented-generation. It is useful for chat, QA, or other applications that rely on passing context to an LLM.

R
rlmFree
31,980,219 389,806
Productivity & Workflow
Universal

Calculate BMI, export exercise and eating schedule

Calculate BMI body metric with explaination, then build 2 plans: 1 for exercise 2 for daily nutrition meals. Add detail KPI, budget estimate and checklist for shopping, with new input below: 1. your gender, age, weight & height (with unit name): {male, 27, 65kg, 1m65} 2. additional health goals & condition: {not sick, using cigarette}

L
lee mop$1.99
6,544 6,581
Productivity & Workflow
Universal

Gym Routine Creation - Work Out Regiment

Generate a custom gym routine for yourself. Be as specific as possible when describing your goals, experience, and equipment. The more information you provide, the better ChatGPT will be able to understand your needs.

C
Chico Gallons$1.99
5,188 5,189
Productivity & Workflow
Universal

Personalized Workout Plan Creation

Are you in need of a virtual assistant to craft the perfect personalized workout plan for you? Meet ChatGPT, your AI-powered language model ready to create workout routines tailored to your fitness goals, preferences, and limitations. ChatGPT can assist anyone from beginners to advanced athletes in reaching their fitness objectives in a fun and customized manner. Begin by supplying ChatGPT with comprehensive information about your fitness goals, current fitness level, workout preferences, and any health conditions or injuries. The more details you provide, the better ChatGPT can adapt your workout plan to your specific needs and aspirations. Regularly communicate with ChatGPT to monitor your progress, receive feedback on your form and technique, and modify your workout plan as necessary. ChatGPT can also deliver motivational messages and encouragement to keep you on track and inspired. Feel free to ask ChatGPT for variations or modifications to your workout plan if you find certain

J
Jino T.$1.99
5,091 5,102
Productivity & Workflow
Universal

Growth Mindset Guru

Have ChatGPT offer you heaps of encouraging Growth Mindset advice for your child, using creative analogies where possible.

S
Stephen WalderFree
1,537 1,546
Productivity & Workflow
ChatGPT

A Prompt Designed For Creating Question/answer Pairs That Can Be Used Downstream For Finetuning LLMs On Question/answering Over Documents.

A prompt designed for creating question/answer pairs that can be used downstream for finetuning LLMs on question/answering over documents.

H
homanp$1.99
3,257 20,905