I used to do this once a month, and for a while once a week, for my BL's open mic. First: Etiquette. If you are kicking off a riff for people to jam on, do tell them what key you're planning to be in.
Second: Don't invent on the opening, unless you've really got a plan. It's a jam, right? So start with the cliché of your choice. I'm old, so I have a whole bag full of Commodores, Ohio Players, Rick James, blahblahblah. And the Bernard Edwards playbook. Open with one of those, it lets everybody sort themselves out. If you're doing a rock thing, it's the same: A three-chorder in E (Eb if you have horns. Playing in Eb builds character). Whatever bag you're in, you probably already know some popular riffs. Pro tip: If you are the BL, learn how to give mic hogs/complete incompetents (often both at once!) Stinkeye. If you are the hired help, learn to give the BL stinkeye.
Second: Don't invent on the opening, unless you've really got a plan. It's a jam, right? So start with the cliché of your choice. I'm old, so I have a whole bag full of Commodores, Ohio Players, Rick James, blahblahblah. And the Bernard Edwards playbook. Open with one of those, it lets everybody sort themselves out. If you're doing a rock thing, it's the same: A three-chorder in E (Eb if you have horns. Playing in Eb builds character). Whatever bag you're in, you probably already know some popular riffs. Pro tip: If you are the BL, learn how to give mic hogs/complete incompetents (often both at once!) Stinkeye. If you are the hired help, learn to give the BL stinkeye.