Embed an Interview In Customer Portal for Anonymous Users
Intelligent Advisor interviews for anonymous users can be embedded into Oracle B2C Service Customer Portal without using a widget. (Anonymous interviews can also be embedded into Customer Portal using the Intelligent Advisor widget.) To do this:
- Deploy and activate the Policy Modeling project.
- Create a new Oracle B2C Service answer. Alternatively, you can edit an existing Oracle B2C Service answer.
- On the Answer subtab, select the Source subtab.
- Enter the text of the answer, and then where you want to embed the Intelligent Advisor interview, include the necessary code to do this.
- You can embed an interview inline using a div and JavaScript. For more information, see Embed an Interview In Another Application Using a Div.

Note that you also need to explicitly allow a cross origin request from the server hosting the application that the interview is being embedded in. For more information, see Configure Browser Access for Embedded Interviews. - Alternatively, you can embed an interview in an inline frame. For more information, see Embed an Interview In Another Application Using an Iframe.

- You can embed an interview inline using a div and JavaScript. For more information, see Embed an Interview In Another Application Using a Div.
- On the Home ribbon, click Save.
- Launch your Oracle B2C Service Customer Portal. (The URL for this would have been provided to you when you installed your Oracle B2C Service instance.)
- Click on the new answer link.

The view now shows the question and answer text and the embedded Intelligent Advisor interview.
An interview embedded inline using a div and JavaScript would look like this:
An interview embedded using an iframe would look like this: