Python code to export the training phrases from a Dialogflow Agent to a .csv file.
- Clone the repository:
git clone https://github.com/migoogle/DF_CX_TP_TABLE_EXTRACTION.git
- Install the dependencies:
pip install dfcx-scrapi
(additionaly, you can install the dependencies with pip install -r requirements.txt
)
- In main.py file, fill in the paths to the Dialogflow Agent and the output file, e.g:
cred_path = '/credentials/serviceKey.json'
agent_id = 'projects/financial-bot-webhook/locations/global/agents/...601e-b396-48ed-b819-59a0426ed65b'
Intents_CSV_Output = '/taxonomy.csv'
- Run the code
python main.py