Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Error creating an app Engine from discoveryengine using type SOLUTION_TYPE_CHAT

Hello

I'm trying to create a Chat Engine using node js and the module discoveryengine, this creation offers different type of options like SOLUTION_TYPE_RECOMMENDATION, SOLUTION_TYPE_GENERATIVE_CHAT, SOLUTION_TYPE_CHAT, most options work´s fine but when I tried to create an engine type SOLUTION_TYPE_CHAT, the response is always the same:

Error creating engine: Error: 13 INTERNAL: Internal error encountered. Please try again. If the issue persists, please contact our support team.

I appreciate if somebody can help me, because i don't undestand what I`m doing wrong.

I share the code i`m using:

const {EngineServiceClient} = require('@google-cloud/discoveryengine').v1beta;
const client = new EngineServiceClient();

const request = {
  parent: `projects/YOUR_PROJECT_ID/locations/global`,
  engineId: "engine-test-569",
  engine: {
    displayName: "local Bot",
    solutionType: "SOLUTION_TYPE_CHAT",
    dataStoreIds: ["test-5454654"],
 }
};

try {
        const [operation] = await client.createEngine(request);
        // Wait for the operation to complete
        const [response] = await operation.promise();

        console.debug('Engine created successfully:', response);
  } catch (error) {
        console.error('Error creating engine:', error);
  }

In addition to this, i want to relate this engine with an existing agent created with dialogflow cx.

1 REPLY 1