build_family_tree
ChatGPTAdd relatives to the user's private family tree draft and draw the tree as a card in the chat (the card is the drawing – never repeat the tree as text). Call it every time the user names a relative or gives details about one. Pass those people with their links as refs: parents, children or spouses – for 'my mother is Gulnara' pass Gulnara with children set to the user's ref. Nobody is ever removed: everyone from earlier calls stays. Pass draft_id and reuse the refs from the previous result. Set 'me' to the ref of the user and 'lang' to the language of the conversation. The result lists people who still have no recorded parents – ask about them gently, one at a time.






