I would like to create a flowchart in LaTeX with this basic design:
I have tried following the Creating Flowcharts tutorial from Overleaf, but I couldn't find out how to add the titles to the boxes.
What I currently have is the following code:
\tikzstyle{box} = [rectangle, rounded corners, minimum width=5cm, minimum height=2cm,text centered, draw=black, fill=black!15]
\tikzstyle{arrow} = [very thick, ->, >=stealth]
\begin{tikzpicture}[node distance=4cm]
\node (box1) [box] {text};
\node (box2) [box, below of=box1] {more text};
\draw [arrow] (box1) -- (box2);
\end{tikzpicture}
This produces the following flowchart:
Now I would just like to add the titles to the boxes, as in the first image.



\tikzset{header/.style={label={[rectangle, fill=white, draw, anchor=center, name=\tikzlastnode-header]north:{#1}}}}in the preamble and then\node (box2) [box, below of=box1, header=Title2] {more text}; \draw[arrow] (box1) -- (box2-header);for example. – Qrrbrbirlbel Jul 09 '23 at 23:34tcolorboxpackage, similarly as is done in in the second addendum in the https://tex.stackexchange.com/a/690603/ – Zarko Jul 10 '23 at 01:46