infinity6i6 Builders Platform
Documentation

Getting started

Agents

Dispatch platform agents from your page with the web SDK.

1 min read

Service obtained with sdk.agents(). An agent receives an input and returns a structured result.

dispatch(params)

js
await sdk.agents().dispatch({ agent, input })
Name Type Required Description
agent string Yes Agent name.
input object Yes Agent input data.

Returns: a Promise with the agent result as an object.

Error conditions

  • agent not found: the given agent does not exist.
  • invalid input: the input is not accepted by the agent.
  • execution timeout: the agent did not finish in time.

Minimal example

html
<script src="https://cdn.infinity6.ai/releases/sdkweb/latest/bundle/i6sdk-web.js"></script>
<script type="module">
  async function main() {
    const sdk = new window.I6Sdk();
    const user = await sdk.auth().requireUser();
    if (!user) return;

    const result = await sdk.agents().dispatch({
      agent: "<your-agent>",
      input: { "<key>": "<value>" },
    });
    console.log(result);
  }
  main();
</script>

Support

Implementation support

Official channels for questions during integration.

Response within 1 business day

Technical support email

Send implementation questions with the context of your current step.

Coming soon

WhatsApp

Direct assistance for quick integration questions.

Coming soon

Support assistant

i6 documentation and implementation assistant.