- HTML
- React
Attributes / Props
- HTML
- React
string
required
ID of the Agent
function
Callback function that is called when the form is submitted. The function receives the form values as an object.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Reference
<script type="module">
import Form from 'https://cdn.jsdelivr.net/npm/@nabuxai/embeds@1.0.219/dist/form/index.js';
Form.initStandard({
formId: 'YOUR_FORM_ID',
});
</script>
<script type="module">
import Form from 'https://cdn.jsdelivr.net/npm/@nabuxai/embeds@1.0.219/dist/form/index.js';
Form.initStandard({
formId: 'YOUR_AGENT_ID',
onEnd: function (values) {
console.log('Form submitted with values:', values);
},
})
</script>
const form = await Form.initBubble({
agentId: 'YOUR_AGENT_ID',
onEnd: function (values) {
console.log('Form submitted with values:', values);
},
})
