Mastering Sequential Prompts in Langchain: An Introduction to Automated Prompt Engineering