But when I pass a huge prompt into the "Task input...
# 🌎general
f
But when I pass a huge prompt into the "Task input" (This would occur if I pass the previous messages there). The AI would ignore the actual questin that the user is currently asking and imitate the previous messages
c
Hey @acceptable-kangaroo-64719 how would you go about this?
f
Hi guys I want to show an example of this inside botpress
This is the Task Instruction
This is a snippet of the first part of the AI Task Input
This is a snippet for the other previous message in the AI Task input
I only provided 2 messages of AI and user
And then I provided the prompt (Check the image below)
And this is the AI's output, it answered all the questions I only want it to answer the final question
Copy code
To achieve your goal of building muscle, you can follow a few key steps. First, make sure you are consuming enough calories to support muscle growth. Since your daily calorie intake is 2000, you may need to increase it slightly to provide your body with enough energy. Additionally, focus on consuming a balanced diet that includes a good mix of protein, carbohydrates, and healthy fats. As you mentioned, you are not restricted by any specific diet, so you have the flexibility to include a variety of foods in your meals.

Considering your preference for supplements, you can continue taking whey protein and creatine. These supplements can help support muscle recovery and growth.

In terms of exercise, it's important to incorporate both resistance training and cardiovascular exercises into your routine. Based on your weight of 68kg, height of 178cm, and goal to build muscle, I recommend the following resistance training exercises:

Squats: This exercise targets your lower body, including your quadriceps, hamstrings, and glutes. It helps build leg strength and overall muscle mass.

Bench Press: This exercise targets your chest, shoulders, and triceps. It helps build upper body strength and muscle mass.

Deadlifts: This exercise targets multiple muscle groups, including your back, glutes, and hamstrings. It helps build overall strength and muscle mass.

Overhead Press: This exercise targets your shoulders, triceps, and upper back. It helps build shoulder strength and muscle mass.

Pull-Ups: This exercise targets your back, biceps, and shoulders. It helps build upper body strength and muscle definition.
Copy code
Remember to start with lighter weights and gradually increase the intensity as you progress. It's also important to maintain proper form and technique to prevent injuries. As for the number of sets for each exercise, I recommend starting with 3 sets of 8-12 repetitions for each exercise. However, it's important to listen to your body and adjust the number of sets and repetitions based on your individual fitness level and goals.

Lastly, ensure you are getting enough rest and sleep. Your body needs time to recover and repair the muscles after intense workouts.

Remember to listen to your body and make adjustments as needed. It's always a good idea to consult with a professional personal trainer or nutritionist who can provide personalized guidance based on your specific needs and goals.
This was all one output I didn't even know it was possible for the output to be this long
My question was
I added this to the prompt and now the response is much better
This is the new response for the same question now:
Copy code
Based on your goal of building muscle and the information you provided, I recommend the following number of sets for each exercise:

Squats: 3-4 sets
Bench Press: 3-4 sets
Deadlifts: 3-4 sets
Overhead Press: 3-4 sets
Pull-Ups: 3-4 sets

Remember to start with lighter weights and gradually increase the intensity as you progress. It's important to listen to your body and make adjustments as needed. If you have any specific concerns or limitations, please let me know.
I would still appretiate though if you guys can allow variables in the Instruction Task though it would be very useful.
a
Glad that you found a workaround! I've used a workaround before where I use a an execute code card to put my whole prompt, instructions and inputs, into a single string variable. Then, in the AI task, I give it a very short generic instruction like "Follow the instructions below" and then put my prompt var as input.
f
Hey Gordy, I was asking Sabrina about being able to access GPT-4 since it has a larger context window and would be extremely useful. She said it would be coming soon. If there is a beta or something with access to GPT-4 I would like to be on it if possible. Thanks alot
a
we'll let you know!