How can I have players unlock recipes before crafting them?

Currently I have a custom crafting recipe for an item, but I only unlocked the recipe in the crating book after I crafted it. Can I have players instead unlock it from the start or when they get one of the items?
Continue to help post