devnumbertwo - $h!t for developers

View Original

Customizing the look (and other defaults) of your Dialogflow Agent

After you’ve gotten your agent on your site (for steps on how to do this check out this post), you can customize the look and feel of your agent.

Expanding your agent by default

if you’d like your agent to be “open” upon the user hitting your page, set the expand param on your df-messenger to true:

See this content in the original post

Setting the default Intent

The default intent your agent starts with is set in the intent attribute — you can change it to any value that matches any of your Intents (the Intents screen in your Dialogflow console):

See this content in the original post

Changing the colors of your agent

You will want to add the following to your styles. The code is somewhat self-explanatory so go ahead and play around with it.

See this content in the original post