Mind Expression API

Mind Expression offers channel integrations for popular platforms like Line, Instagram, Facebook Messenger, Discord, Viber, and more. To connect your scope to external channels, you can use the Mind Expression API. This allows you to activate your conversational AI on your own terms.

The API reference provides a comprehensive overview of the Mind Expression API, offering essential details for implementing conversational AI in your organization. Whether you want to engage with users on Line, Instagram, Facebook Messenger, Discord, Viber, or other platforms, the API is designed to make the integration process smooth and efficient.

Mind Expression API / Server

Mind Expression API / Server : Sync

When a client sends a request, they've to wait for a response. This process involves direct communication, and the client receives the engine's reply without delay. It's like having a real-time conversation, ensuring quick interactions and feedback between the client and the system.

How do I integrate?

1. Click Integration on the Scope details page of Mind Expression.

2. Click Connect under Mind Expression API / Server.

3. Copy the 'Engine URL' and 'Auth Key' to connect your Conversation AI to the Mind Expression API. Remember to click 'Connect' after copying both the 'Engine URL' and 'Auth Key'.

Mind Expression API / Server : Async

When a client sends a request, they don't need to wait for an immediate response. Instead, we utilize a configured webhook to handle this process. For instance, when a user sends a message, the respective webhooks are called, and we promptly respond with an “OK” response. The actual processing of the queries by our engine takes place in the background. Once processed, we then use their API to send the appropriate response message. This asynchronous (Async) approach ensures a seamless and efficient interaction for users.

How do I integrate?

1. Click Integration on the Scope details page of Mind Expression.

2. Click Connect under Mind Expression API / Server.

3. Connect with your system.

  • Copy the 'Engine URL' and 'Auth Key' to connect your Conversation AI to the Mind Expression API.

  • Enter the ‘Webhook URL’ and verify the ‘Token’ for the system you want to integrate with, then click Validate.

  • Remember to click 'Connect' after validating ‘Webhook URL’ and ‘Token’.

Additionally, when requesting the Mind Expression API / Server: Async, make sure to include the “sender” field in the request body.

Example of Request Body:

{
    "query": "Hi",
    "query-id": "{{uuid}}",
    "timestamp": {{timestamp}}, # timestamp in milliseconds
    "sender": "Sender"
}

Mind Expression API / Client

If you're looking to link up with a mobile app using the websocket protocol, the Mind Expression API/Client API is the way to go.

How do I integrate?

1. Click Integration on the Scope details page of Mind Expression.

2. Click Connect under Mind Expression API / Client.

3. Copy the 'Engine URL' and 'Auth Key' to connect your Conversation AI to the Mind Expression API. Remember to click 'Connect' after copying both the 'Engine URL' and 'Auth Key'.

Last updated