1Preheat the oven to 350ºF.
2In the bowl of a food processor, combine the flour, oats, sugar, baking powder and salt; pulse until the oats are finely ground. Add the butter and pulse to blend. Transfer the mixture to a mixing bowl.
3Put the beans, juice, oil, egg and vanilla into the food processor and pulse until smooth; add to the dry ingredients along with the almonds and apricots, or whatever additions you would like to add. Stir just until the dough comes together.
4Shape the dough into a log on a baking sheet that has been sprayed with non-stick spray (the dough will be a bit sticky-dampening your hands helps), flattening it so that it’s about 15 inches long and 4 inches wide. (Divide the dough into two if it doesn’t fit on your cookie sheet, or make longer, thinner logs for smaller biscotti.) If you like, sprinkle the top with coarse sugar.
5Bake for 25-30 minutes, until golden and firm. Transfer to a wire rack to cool, then cut on a slight diagonal into 1/2-inch thick slices using a serrated knife. Stand the biscotti upright on the baking sheet, spacing them about half an inch apart, and bake for another 30 minutes, until crisp and dry.