TreeInstruct provides a framework to build hierarchical, decision-tree based prompting pipelines for large language models. Users can define nodes representing prompts or function calls, set conditional branches based on model output, and execute the tree to guide complex workflows. It supports integration with OpenAI and other LLM providers, offering logging, error handling, and customizable node parameters to ensure transparency and flexibility in multi-turn interactions.