2 ways you can create activity
1) VEC
2) Form based.
Looks like you are looking for form based activity , where in experience fragment can be loading in a automatic way.
Note : In launch -> you can create a data element which has the custom js code that can be used in the audiences.