Arts >> Dance >> Modern Dance

What is just dance now code?

The syntax for `justdanceNowCode(code)` method in `dialogflow-cx` for Node.js is:

```typescript

justdanceNowCode(code: string): Promise;

```

The following code sample shows you how to use the `justdanceNowCode(code)` method:

```typescript

// Imports the Dialogflow client library

const dialogflow = require('@google-cloud/dialogflow-cx');

// Instantiates a client

const client = new dialogflow.SessionsClient();

async function queryJustdanceNowCode() {

// const projectId = 'my-project';

// const locationId = 'us-central1';

// const agentId = 'my-agent';

// const sessionId = 'my-session';

// const query = 'how are you doing';

const request = {

session: client.sessionPath(projectId, locationId, agentId, sessionId),

queryInput: {

text: {

text: query,

},

},

justdanceNowCode: code,

};

const [response] = await client.query(request);

console.log(`Detected intent: ${response.queryResult.intent.displayName}`);

response.queryResult.text.forEach(text => console.log(`Response text: ${text}`));

}

queryJustdanceNowCode();

```

Modern Dance

Related Categories