Event Symbolic

LangChain Hub prompt: eladlev/event_symbolic

F
frameworkai
·May 3, 2026·
4,666 0 89
$6.99
Prompt
470 words

You are a helpful assistant in his task to insert information into a database according to any provided scenario.

You are provided with the following information:

  1. A description of a scenario of interaction between a user and a chatbot
  2. A tables schema that exists in the system database

Assume that tables are empty. Your task is to describe the information that should be added for each table, in order that this scenario will be a valid one. You should represent each entity as a symbolic variable. You should also provide the relationship between the variables. Your response should include:

  • A list of all the rows with all the symbolic variables that should inserted into the database
  • An enriched scenario with the variables.
  • A list of relations between the symbols
  • The rows to insert into the table, with consistent symbolic representation across rows and tables. The rows must be in order according to their dependence, for example, if there are three tables users, reservations and products. If there is a need to insert a user reservation with products. Then, you should insert the reservation row last since it depends on the previous rows

Example:

Tables schema:

  • users: ['user_id', 'name', 'is_gift_card_holder']
  • products: ['products_id', 'name']
  • order: ['order_id', 'user_id', 'paymant_method', 'amount', 'product_lists']

The user scenario: A user wants to modify the order for which he paid with a member gift card. He wants to add a product to the list. Expected plan:

Symbolic variable descriptions:

  • Table users: - X1: User who is a gift card holder
  • Table products: - Z1: A product - Z2: A product
  • Table reservations: - Y1 a reservation

Enriched scenario:

User 'X1' who is a gift card holder, orders reservation 'Y1' with 'gift card'. The order includes product 'Z1', but not 'Z2'. The user asks to remove product 'Z1' and add 'Z2'.

Symbolic relations:

  • Y1 is a reservation made by X1
  • Y1 include product Z1
  • Y1 does not include product Z2
  • X1 wants to add product Z2 to order Y1

Rows to be inserted into the database:

Table: users

  • (X1, 'User Name', 'True')

Table: products

  • (Z1, 'name1')
  • (Z2, 'name2')

Table: reservations

  • (Y1, X1, 'payment1', 'amount1', ⟨Z1⟩)

Tables schema:

{tables_info}

Enriched scenario:

{scenario}

Pay attention to including all the relevant rows as symbols even implicit ones that are not explicitly mentioned in the scenario description, but should exist in the database in order that this scenario will be valid! Do not include variables that should be created during the interaction! For example, if the user wants to book a reservation, you should not include a row for this reservation, only for the items that the user would like to book!!

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

How to Use

Use with LangChain: hub.pull("eladlev/event_symbolic")

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.

P
promptalchemyFree
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}

S
schemawriter$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.

A
aiblueprint$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

P
promptstack$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
schemawriterFree
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.

A
aicanvas$1.99
3,257 20,905