There are many styles of built in benches that can be added as features to a deck. Search pictures online to explore a variety of design ideas. Most benches are framed out of 2x4, 2x6, and 4x4 material and covered with decking to create a solid surface to sit on that compliments the rest of the deck. Some benches use the rails as a backrest or may include one of its own.
Most of the attention will surround its appearance and how comfortable it is. A bench’s seat should be elevated about 16”-20” off the ground to provide a comfortable sitting position. Examine the heights and width of chairs and benches to get an idea of what dimensions you want to use for your benches. Benches, planters and other accessories on a deck cannot be regulated by building codes unless they are fixed in place. Otherwise, they are merely custom-built furniture. As furniture, there are no building codes that address their construction. However, if the bench or planter is at the edge of a deck and acting as a guardrail or portion of a guard, they would be subject to all loading and geometric requirements of guards.