For local businesses the panel is mostly built from your Google Business Profile. You can't add one with markup, but consistent facts across the web help Google connect them to you.
Glossary
Knowledge panel
The information box Google shows about a business, person or place, usually beside or above the results.
All terms
Someone is asking AI where to stay tonight.
Check your site free, then press Optimize. Back to your guests.