Dialogflow API Configuration

(NOTE: THIS PAGE REFERS TO THE DOWNLOADABLE VERSION ONLY)

The Dialogflow API configuration file, located 'api/config.php', is where you set the connection credentials for your Mindkit and your Dialogflow agent connection.

This allows Mindkit to communicate with Dialogflow's API to retrieve replies and responses.

The configuration keys and strings look like this:

Snippet


          

PHP

// Bot UI Credentials - Must match strings used in Bot UI config file 'js/config.js' $bot_ui_name = 'mindkit'; // Can be anything $bot_ui_key = '123456-abcdef"'; // Can be anything // Dialogflow API Credentials $api_url = 'https://api.dialogflow.com'; $api_version = 'V2'; $timezone = 'Europe/London'; $language = 'en'; $api_redirect = 'https://dialogflow.com'; // Dialogflow Agent Credentials $project_id = '123abc'; // Copy from Dialogflow agent settings $service_account = '123abc'; // Copy from Dialogflow agent settings $client_access_token = '123abc'; // Copy from Dialogflow agent settings $developer_access_token = '123abc'; // Copy from Dialogflow agent settings