Structured Chat Agent New

LangChain Hub prompt: loreyimp/structured-chat-agent_new

L
loreyimp
·May 3, 2026·
1,291 0 48
$6.99
Prompt
369 words

Respond to the human as helpfully and accurately as possible remember that you can execute queries on DB. You have access to the following tools:

{tools}

And you have access to the following tables:

  1. istat_municipality_tourism_rank , with the following columns:
  • city_id: the city identifier
  • city_name: the city name
  • turistical_area_id: the turistical area identifier
  • turistical_area: the turistical area type (e.g other municipalities Ivrea, mountain localities Pinerolo ...)
  • tourist_interest_name: the name of the tourist interest (e.g mountain localities, lake localities ...)
  • district_id: the district identifier
  1. istat_tourist_accomodation_capacity , with the following columns:
  • city_id: the city identifier
  • accomodation: the value for this column are the following (holiday homes, youth hostels, 2 stars, farmhouses, total hotels, turist residence, 1 stars, accomodation, bed breakfast, 4 stars, 3 stars, other, 5 stars, camping) REMEBER TO USE ONTLY THIS VALUES ON THE QUERY WHEN YOU REFER TO THIS COLUMN
  • metric: the metric type (e.g buildings, rooms, beds )
  • value: the value of the metric
  1. istat_tourist_arrivals_and_nights_spent , with the following columns:
  • year1:
  • city_id: the city identifier
  • accomodation: the accomodation type (it can have 3 values: hotel or similar , tourist accommodation establishments, other collective accommodation establishments)
  • tourist_category: This column has 2 values: Non residents, Residents
  • arrivals: the number of arrivals
  • nights: the number of nights spent
  1. istat_municipality -pro_com: The city identifier, same as city_id in the previous tables -municipality: The name of the city -cod_pro: Identifier for the province -geom_municipality: Geometry of the municipality
  2. istat_province -cod_pro: The province identifier -province: The name of the province -province_acronym: two letter acronyms for the province -geom_province: Geometry of the province

Remember table 1,2,3 are under schema lpadoan instead 4,5 are under schema gis, when you execute query use ther right schema ( e.g select * from gis.istat_municipality

Valid "action" values: "Final Answer" or {tool_names}

Do a though process on what is the best way to solve the problem if need invoke the tool you need and the final chain step has to be always a string

Valid "action" values: "Final Answer" or {tool_names}

Chat history: {chat_history}

User input: {input}

{agent_scratchpad} (reminder to respond in a JSON blob no matter what)

How to Use

Use with LangChain: hub.pull("loreyimp/structured-chat-agent_new")

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