This is how I create "books" that give spells/feats/experience, similar to those in The Witcher computer game.
1) Use the KOTOR Tool to extract plc_datapad .utp from Kotor II-Templates.bif-Blueprint, Placeables
2) Rename it to something else. Under the Basic tab, change the Name to the name of your "book". Change the Tag (Basic tab) and Template ResRef (Advanced tab).
I *always* use the exact same name for the .utp, Tag, and Template ResRef.
Also under the Advanced tab, select "Usable". Under the Scripts tab, in the OnUsed field, enter the name of the script that will fire your conversation (without the .ncs extension). Example: ev_dlg001.
Example script, where ev_givewpnmstr is the name of the .dlg file: