I'm trying to understand the proof of the proposition 2.29 in the book Locally presentable and accessible categories which is also given in the snippet below.
I've got stuck in the -2nd paragraph there: the existence of $h$ is unclear to me. Can someone kindly help me to understand how existence of $\bar{v}$ helps us with existence of $h$ having the property $$h\cdot (\bar{f}\cdot p')=h\cdot(\bar{f}\cdot q')$$?

I'll be a bit pedantic to make sure there are no misunderstanding, but the idea is supersimple. Denote by $$F : (\mathbf{Pres}_{\lambda}\mathcal{K} \downarrow B) \to \mathbf{Pres}_{\lambda}\mathcal{K} \qquad F(B', v: B' \to B)=B'$$ the canonical diagram of $B$, since $\mathcal{K}$ is $\lambda$-accessible, $(\mathbf{Pres}_{\lambda}\mathcal{K} \downarrow B)$ is $\lambda$-filtered.
Now since $K$ is $\lambda$-presentable you have $$\mathcal{K}(K, B) \cong \varinjlim \mathcal{K}(K, F) = \varinjlim_{v: B' \to B} \mathcal{K} (K, B').$$
At this point notice that the equality $\bar{v} \cdot (\bar{f} \cdot p')= \bar{v} \cdot (\bar{f} \cdot q')$ is telling you (in force of the above) that that $\bar{f} \cdot p' \in \mathcal{K} (K, \bar{B})$ and $\bar{f} \cdot q' \in \mathcal{K} (K, \bar{B})$ have the same image in the colimit, i.e., recalling how ($\lambda$-)filtered colimits are computed in $\mathbf{Set}$,that there has to be an object $(B', v: B' \to B)$ and a map $h : (\bar{B}, \bar{v}) \to (B', v)$ in the domain $\mathbf{Pres}_{\lambda}\mathcal{K} \downarrow B$ of the canonical diagram $F$ such that the map $$(\mathcal{K}(K,F))(h)= h \cdot - : \mathcal{K}(K, \bar{B}) \to \mathcal{K}(K,B')$$ sends $\bar{f} \cdot p'$ and $\bar{g} \cdot q$ to the same element, i.e. s.t. $h \cdot (\bar{f} \cdot p') = h \cdot ( \bar{f} \cdot q')$.